From 4a1afa694cd8ebd6591d5a825ee35e4f57c98469 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 15 Jul 2014 11:38:02 -0500 Subject: Add SELinux support to the build system X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956 --- mk/os-Linux.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mk') 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 -- cgit v1.2.3