summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Tworek <tworaz666@gmail.com>2018-09-21 23:57:07 +0200
committerJoe MacDonald <joe@deserted.net>2018-10-30 08:04:18 -0400
commit4f118052b26a5c395975cd5f6da96f7307152aef (patch)
tree37f88454afb2a91f7daf1deeacfdd6d9861e167a
parentba4d05f523d9ccfd8b4addd40e26629516262284 (diff)
downloadmeta-selinux-4f118052b26a5c395975cd5f6da96f7307152aef.tar.gz
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"
8inherit lib_package pythonnative 8inherit lib_package pythonnative
9 9
10DEPENDS += "libsepol python libpcre swig-native" 10DEPENDS += "libsepol python libpcre swig-native"
11DEPENDS_append_libc-musl = " fts"
11RDEPENDS_${PN}-python += "python-core" 12RDEPENDS_${PN}-python += "python-core"
12 13
13PACKAGES += "${PN}-python" 14PACKAGES += "${PN}-python"
@@ -23,6 +24,7 @@ def get_policyconfigarch(d):
23EXTRA_OEMAKE += "${@get_policyconfigarch(d)}" 24EXTRA_OEMAKE += "${@get_policyconfigarch(d)}"
24 25
25EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'" 26EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'"
27EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts"
26 28
27do_compile_append() { 29do_compile_append() {
28 oe_runmake pywrap -j1 \ 30 oe_runmake pywrap -j1 \