aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Tworek <tworaz666@gmail.com>2018-09-21 23:57:07 +0200
committerJoe MacDonald <joe@deserted.net>2018-10-23 13:16:39 +0100
commit295223cd94c46e4315998784188714d13eb873e2 (patch)
tree37f88454afb2a91f7daf1deeacfdd6d9861e167a
parent1fdd4c91d7374a3ea9fbaa7bbee64e0e6d02b482 (diff)
downloadmeta-selinux-295223cd94c46e4315998784188714d13eb873e2.tar.gz
meta-selinux-295223cd94c46e4315998784188714d13eb873e2.tar.bz2
meta-selinux-295223cd94c46e4315998784188714d13eb873e2.zip
libselinux: Fix build with musl libc.
Musl libc does not implement file traversal functions from fts.h. Oe-core provides fts library which implements those. Libselinux makefile allows us to use such additional library by specifying required linker flags via FTS_LDLIBS variable. Signed-off-by: Piotr Tworek <tworaz666@gmail.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r--recipes-security/selinux/libselinux.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-security/selinux/libselinux.inc b/recipes-security/selinux/libselinux.inc
index 28c437f..33621cc 100644
--- a/recipes-security/selinux/libselinux.inc
+++ b/recipes-security/selinux/libselinux.inc
@@ -8,6 +8,7 @@ LICENSE = "PD"
inherit lib_package pythonnative
DEPENDS += "libsepol python libpcre swig-native"
+DEPENDS_append_libc-musl = " fts"
RDEPENDS_${PN}-python += "python-core"
PACKAGES += "${PN}-python"
@@ -23,6 +24,7 @@ def get_policyconfigarch(d):
EXTRA_OEMAKE += "${@get_policyconfigarch(d)}"
EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'"
+EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts"
do_compile_append() {
oe_runmake pywrap -j1 \