Pārlūkot izejas kodu

libselinux: needs shared library support

Even though technically libselinux could make its <dlfcn.h> include
optional, the build system isn't really suited to build and install
only the static variant of libselinux, so let's make libselinux and
its reverse dependency not available in pure-static environments.

Fixes:

  http://autobuild.buildroot.org/results/90d/90dc73980a45b9b0441be3d493b22e3afea3cd6e/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas Petazzoni 10 gadi atpakaļ
vecāks
revīzija
a2dc5e21cf
2 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  1. 3 2
      package/libselinux/Config.in
  2. 3 2
      package/libsemanage/Config.in

+ 3 - 2
package/libselinux/Config.in

@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBSELINUX
 	select BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_PCRE
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_LARGEFILE
 	depends on BR2_LARGEFILE
+	depends on !BR2_STATIC_LIBS
 	help
 	help
 	  libselinux is the runtime SELinux library that provides
 	  libselinux is the runtime SELinux library that provides
 	  interfaces (e.g. library functions for the SELinux kernel
 	  interfaces (e.g. library functions for the SELinux kernel
@@ -15,5 +16,5 @@ config BR2_PACKAGE_LIBSELINUX
 
 
 	  http://selinuxproject.org/page/Main_Page
 	  http://selinuxproject.org/page/Main_Page
 
 
-comment "libselinux needs a toolchain w/ largefile, threads"
-        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE
+comment "libselinux needs a toolchain w/ largefile, threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE || BR2_STATIC_LIBS

+ 3 - 2
package/libsemanage/Config.in

@@ -5,6 +5,7 @@ config BR2_PACKAGE_LIBSEMANAGE
 	select BR2_PACKAGE_BZIP2
 	select BR2_PACKAGE_BZIP2
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_LARGEFILE
 	depends on BR2_LARGEFILE
+	depends on !BR2_STATIC_LIBS
 	help
 	help
 	  libsemanage is the policy management library. It uses
 	  libsemanage is the policy management library. It uses
 	  libsepol for binary policy manipulation and libselinux for
 	  libsepol for binary policy manipulation and libselinux for
@@ -26,5 +27,5 @@ config BR2_PACKAGE_LIBSEMANAGE_PYTHON_BINDINGS
 
 
 endif
 endif
 
 
-comment "libsemanage needs a toolchain w/ largefile, threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE
+comment "libsemanage needs a toolchain w/ largefile, threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE || BR2_STATIC_LIBS