aboutsummaryrefslogtreecommitdiff
path: root/mk/os-Linux.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/os-Linux.mk')
-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