libselinux: needs shared library support
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 2 Jan 2015 20:08:41 +0000 (21:08 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 2 Jan 2015 20:09:40 +0000 (21:09 +0100)
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>
package/libselinux/Config.in
package/libsemanage/Config.in

index c8a23b3e2cc5bb35923df70da620b4dc071635b7..e4d1309daa48fff2eed2b0dc84d21a536c599a49 100644 (file)
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBSELINUX
        select BR2_PACKAGE_PCRE
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_LARGEFILE
+       depends on !BR2_STATIC_LIBS
        help
          libselinux is the runtime SELinux library that provides
          interfaces (e.g. library functions for the SELinux kernel
@@ -15,5 +16,5 @@ config BR2_PACKAGE_LIBSELINUX
 
          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
index 3f4bfb70a2133ecd27975f876881ff0cc8376c35..bef5c7830598bbe142a1de095adf4fc8f007fd20 100644 (file)
@@ -5,6 +5,7 @@ config BR2_PACKAGE_LIBSEMANAGE
        select BR2_PACKAGE_BZIP2
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_LARGEFILE
+       depends on !BR2_STATIC_LIBS
        help
          libsemanage is the policy management library. It uses
          libsepol for binary policy manipulation and libselinux for
@@ -26,5 +27,5 @@ config BR2_PACKAGE_LIBSEMANAGE_PYTHON_BINDINGS
 
 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