ebcca24c95
In addition, if a user is using glibc 2.22, the default CFLAG D_FILE_OFFSET_BITS=64 will cause a compile error. This flag is now removed from the CFLAGS in the make file to ensure that toolchains compiled against glibc 2.22 will build the new version of the package properly. In addition, libselinux now uses fts(), which is not available on musl, and not provided by our default uClibc configuration. Therefore, libselinux now depends on glibc, as well as all its reverse dependencies. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: add glibc dependency for fts().] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
26 lines
989 B
Plaintext
26 lines
989 B
Plaintext
config BR2_PACKAGE_LIBSELINUX
|
|
bool "libselinux"
|
|
select BR2_PACKAGE_LIBSEPOL
|
|
select BR2_PACKAGE_PCRE
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
depends on !BR2_STATIC_LIBS
|
|
# Uses <fts.h>, not available in musl or uClibc
|
|
depends on BR2_TOOLCHAIN_USES_GLIBC
|
|
# Toolchain issue: "fixup not contained within frag"
|
|
depends on !BR2_arc
|
|
help
|
|
libselinux is the runtime SELinux library that provides
|
|
interfaces (e.g. library functions for the SELinux kernel
|
|
APIs like getcon(), other support functions like
|
|
getseuserbyname()) to SELinux-aware applications. libselinux
|
|
may use the shared libsepol to manipulate the binary policy
|
|
if necessary (e.g. to downgrade the policy format to an
|
|
older version supported by the kernel) when loading policy.
|
|
|
|
http://selinuxproject.org/page/Main_Page
|
|
|
|
comment "libselinux needs a glibc toolchain w/ threads, dynamic library"
|
|
depends on !BR2_arc
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
|
|
!BR2_TOOLCHAIN_USES_GLIBC
|