aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2019-03-19 11:31:49 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-03-19 22:10:52 +0100
commit8f43ec6ce8d766d8954d4dd5366cef910c2b11b5 (patch)
treeab46df48f9ba487d297a3f191d423a15734ae95d /package
parenta3a4d4d4d307fd21f19ae43e77ac21b85adad7f2 (diff)
downloadbuildroot-8f43ec6ce8d766d8954d4dd5366cef910c2b11b5.tar.gz
buildroot-8f43ec6ce8d766d8954d4dd5366cef910c2b11b5.tar.bz2
package/libglib2: add optional dependency in libselinux
If libselinux is selected, explicitly set --enable-selinux in the configure options and build the library first. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package')
-rw-r--r--package/libglib2/libglib2.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index d34bfabd52..63bfec32d6 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -137,6 +137,13 @@ LIBGLIB2_CONF_OPTS += --with-libiconv=gnu
LIBGLIB2_DEPENDENCIES += libiconv
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+LIBGLIB2_CONF_OPTS += --enable-selinux
+LIBGLIB2_DEPENDENCIES += libselinux
+else
+LIBGLIB2_CONF_OPTS += --disable-selinux
+endif
+
# Purge gdb-related files
ifneq ($(BR2_PACKAGE_GDB),y)
define LIBGLIB2_REMOVE_GDB_FILES