package/libglib2: add -Dxattr=true when libselinux is selected
authorAdam Duskett <aduskett@gmail.com>
Sat, 1 May 2021 19:56:19 +0000 (12:56 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 20 May 2021 12:29:26 +0000 (14:29 +0200)
Xattrs is required for SELinux. Explicitly enable the feature when the
libselinux package is selected.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libglib2/libglib2.mk

index b5554d6b56936083b5dc360c5f42c81405078d82..e3263ce9ce2d958c9f225208099d04378e070504 100644 (file)
@@ -77,10 +77,10 @@ LIBGLIB2_DEPENDENCIES += libiconv
 endif
 
 ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
-LIBGLIB2_CONF_OPTS += -Dselinux=enabled
+LIBGLIB2_CONF_OPTS += -Dselinux=enabled -Dxattr=true
 LIBGLIB2_DEPENDENCIES += libselinux
 else
-LIBGLIB2_CONF_OPTS += -Dselinux=disabled
+LIBGLIB2_CONF_OPTS += -Dselinux=disabled -Dxattr=false
 endif
 
 # Purge gdb-related files