1config BR2_PACKAGE_LIBSELINUX
2	bool "libselinux"
3	depends on BR2_TOOLCHAIN_HAS_THREADS
4	depends on !BR2_STATIC_LIBS
5	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
6	select BR2_PACKAGE_LIBSEPOL
7	select BR2_PACKAGE_PCRE2
8	select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
9	select BR2_PACKAGE_PYTHON_SETUPTOOLS if BR2_PACKAGE_PYTHON3
10	help
11	  libselinux is the runtime SELinux library that provides
12	  interfaces (e.g. library functions for the SELinux kernel
13	  APIs like getcon(), other support functions like
14	  getseuserbyname()) to SELinux-aware applications. libselinux
15	  may use the shared libsepol to manipulate the binary policy
16	  if necessary (e.g. to downgrade the policy format to an
17	  older version supported by the kernel) when loading policy.
18
19	  http://selinuxproject.org/page/Main_Page
20
21comment "libselinux needs a toolchain w/ threads, dynamic library, gcc >= 5"
22	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
23		!BR2_TOOLCHAIN_GCC_AT_LEAST_5
24