From 95cbbe32e0d1cc83301c834b21296dfbca1a0abe Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 10 Jun 2015 12:36:15 -0700 Subject: [PATCH] Respect $CPPFLAGS Some parts of the AppArmor build system don't respect $CPPFLAGS. The attached patch fixes this. Acked-by: Steve Beattie --- changehat/pam_apparmor/Makefile | 2 +- parser/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changehat/pam_apparmor/Makefile b/changehat/pam_apparmor/Makefile index 497724b0d..092131e46 100644 --- a/changehat/pam_apparmor/Makefile +++ b/changehat/pam_apparmor/Makefile @@ -53,7 +53,7 @@ libapparmor by adding USE_SYSTEM=1 to your make command.${nl}\ AA_LINK_FLAGS = -L$(LIBAPPARMOR_PATH) AA_LDLIBS = -lapparmor endif -EXTRA_CFLAGS=$(CFLAGS) -fPIC -shared -Wall $(LIBAPPARMOR_INCLUDE) +EXTRA_CFLAGS=$(CFLAGS) $(CPPFLAGS) -fPIC -shared -Wall $(LIBAPPARMOR_INCLUDE) LINK_FLAGS=-Xlinker -x $(AA_LINK_FLAGS) LIBS=-lpam $(AA_LDLIBS) OBJECTS=${NAME}.o get_options.o diff --git a/parser/Makefile b/parser/Makefile index 40af43585..d0d46a531 100644 --- a/parser/Makefile +++ b/parser/Makefile @@ -50,7 +50,7 @@ CFLAGS = -g -pg -fprofile-arcs -ftest-coverage endif endif #CFLAGS -EXTRA_CXXFLAGS = ${CFLAGS} ${CXX_WARNINGS} -std=gnu++0x -D_GNU_SOURCE +EXTRA_CXXFLAGS = ${CFLAGS} ${CPPFLAGS} ${CXX_WARNINGS} -std=gnu++0x -D_GNU_SOURCE EXTRA_CFLAGS = ${EXTRA_CXXFLAGS} ${CPP_WARNINGS} #LEXLIB := -lfl