mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
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:
parent
00500cac65
commit
7343f3ed39
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user