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>
This commit is contained in:
Piotr Tworek 2018-09-21 23:57:07 +02:00 committed by Joe MacDonald
parent 00500cac65
commit 7343f3ed39

View File

@ -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 \