diff options
author | Piotr Tworek <tworaz666@gmail.com> | 2018-09-21 23:57:07 +0200 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2018-10-30 08:04:18 -0400 |
commit | 4f118052b26a5c395975cd5f6da96f7307152aef (patch) | |
tree | 37f88454afb2a91f7daf1deeacfdd6d9861e167a | |
parent | ba4d05f523d9ccfd8b4addd40e26629516262284 (diff) | |
download | meta-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.inc | 2 |
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" | |||
8 | inherit lib_package pythonnative | 8 | inherit lib_package pythonnative |
9 | 9 | ||
10 | DEPENDS += "libsepol python libpcre swig-native" | 10 | DEPENDS += "libsepol python libpcre swig-native" |
11 | DEPENDS_append_libc-musl = " fts" | ||
11 | RDEPENDS_${PN}-python += "python-core" | 12 | RDEPENDS_${PN}-python += "python-core" |
12 | 13 | ||
13 | PACKAGES += "${PN}-python" | 14 | PACKAGES += "${PN}-python" |
@@ -23,6 +24,7 @@ def get_policyconfigarch(d): | |||
23 | EXTRA_OEMAKE += "${@get_policyconfigarch(d)}" | 24 | EXTRA_OEMAKE += "${@get_policyconfigarch(d)}" |
24 | 25 | ||
25 | EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'" | 26 | EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'" |
27 | EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts" | ||
26 | 28 | ||
27 | do_compile_append() { | 29 | do_compile_append() { |
28 | oe_runmake pywrap -j1 \ | 30 | oe_runmake pywrap -j1 \ |