mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-11-27 05:20:50 +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 15f2740733
("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…
Reference in New Issue
Block a user