aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-07-15 11:38:02 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-07-15 11:38:19 -0500
commit4a1afa694cd8ebd6591d5a825ee35e4f57c98469 (patch)
tree94fc8621c5d626ac7d874723c22c71885c02c464
parent25c229cf830c8e822a206f2e08f9c94964a47aa9 (diff)
Add SELinux support to the build system
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
-rw-r--r--mk/os-Linux.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/os-Linux.mk b/mk/os-Linux.mk
index 40d9c342..dc76b968 100644
--- a/mk/os-Linux.mk
+++ b/mk/os-Linux.mk
@@ -6,3 +6,9 @@ PKG_PREFIX?= /usr
CPPFLAGS+= -D_BSD_SOURCE -D_XOPEN_SOURCE=700
LIBDL= -Wl,-Bdynamic -ldl
+
+ifeq (${MKSELINUX},yes)
+CPPFLAGS+= -DHAVE_SELINUX
+LIBSELINUX= -lselinux
+LDADD += $(LIBSELINUX)
+endif