diff mbox

[2/3] libsepol/tests: override CPPFLAGS too

Message ID 20170628214221.9288-2-nicolas.iooss@m4x.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Nicolas Iooss June 28, 2017, 9:42 p.m. UTC
A build toolchain may override CPPFLAGS on the command line of "make".
Doing so currently breaks libsepol/tests compilation, as it requires
"-I../include/ -I$(CHECKPOLICY)" to be provided in gcc's arguments.

This completes commit 15f274073322 ("Makefiles: override *FLAGS and
*LIBS").

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
---
 libsepol/tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libsepol/tests/Makefile b/libsepol/tests/Makefile
index 1bd96db9b7b2..e7e305e8150b 100644
--- a/libsepol/tests/Makefile
+++ b/libsepol/tests/Makefile
@@ -12,7 +12,7 @@  LIBSEPOL := ../src/libsepol.a
 # This is less than ideal, but it makes the tests easier to maintain by allowing source policies
 # to be loaded directly.
 CHECKPOLICY := ../../checkpolicy/
-CPPFLAGS += -I../include/ -I$(CHECKPOLICY)
+override CPPFLAGS += -I../include/ -I$(CHECKPOLICY)
 
 # test program object files
 objs := $(patsubst %.c,%.o,$(sort $(wildcard *.c)))