Commit ddd90a20 authored by Joshua Root's avatar Joshua Root

Fix include flags order

AM_CPPFLAGS is the correct variable to use for preprocessor flags. Importantly, it is placed on the compiler command line before CPPFLAGS, whereas AM_CFLAGS comes after CPPFLAGS. So before this change, it was possible for incorrect headers in external locations to be used instead of the internal ones specified in SET_INCLUDES.
parent 0f43f180
Pipeline #19822 passed with stage
in 1 minute and 28 seconds
......@@ -5,7 +5,8 @@ EXTRA_DIST=bootstrap COPYING KEYDB.cfg README.txt ChangeLog
SET_FEATURES = @SET_FEATURES@
SET_INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src/libaacs
AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES) $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
AM_CFLAGS = -std=c99 $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
AM_CPPFLAGS = $(SET_FEATURES) $(SET_INCLUDES)
AM_YFLAGS = -d -p libaacs_yy
lib_LTLIBRARIES = libaacs.la
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment