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 <[email protected]>
---
libsepol/tests/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)))
--
2.13.1