summaryrefslogtreecommitdiff
blob: 6fe043bf39e41676dc2beffdea42c9a7a477553b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Setting SKIP_SELINUX skips searching for selinux.  The current ebuild calls
make 3 times.  The first 2 times we don't need to search for selinux packages
because we might end up not needing them and we get useless warnings.

--- a/Makefile.flags
+++ b/Makefile.flags
@@ -176,12 +176,14 @@
 LDLIBS += pam pam_misc
 endif
 
+ifneq ($(SKIP_SELINUX),y)
 ifeq ($(CONFIG_SELINUX),y)
 SELINUX_PC_MODULES = libselinux libsepol
 $(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))
 CPPFLAGS += $(SELINUX_CFLAGS)
 LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%))
 endif
+endif
 
 ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
 ifneq (,$(findstring linux,$(shell $(CC) $(CFLAGS) -dumpmachine)))