mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-02-20 03:11:09 +00:00
libsepol/tests: override CPPFLAGS too
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>
This commit is contained in:
parent
9a0279e9e9
commit
6b9035ddc6
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user