rpm: disable static build support
authorJames Knight <james.knight@rockwellcollins.com>
Mon, 9 Jan 2017 14:08:17 +0000 (09:08 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 24 Jan 2017 10:34:39 +0000 (23:34 +1300)
The RPM package requires dynamic linking support (dlfcn.h) for its
capabilities related to plugins (and possibly more). The following
commit adds a dependency to !BR2_STATIC_LIBS.

Signed-off-by: James Knight <james.knight@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/rpm/Config.in

index 8b7705d105ba995b59b90ad1bf84e15b0fbde24b..9b4c8a7e821ddead2f45e9ce9895c7ab3c624fc1 100644 (file)
@@ -1,10 +1,11 @@
-comment "rpm needs a toolchain w/ threads"
-       depends on !BR2_TOOLCHAIN_HAS_THREADS
+comment "rpm needs a toolchain w/ dynamic library and threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
        depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
        depends on BR2_USE_MMU
 
 config BR2_PACKAGE_RPM
        bool "rpm"
+       depends on !BR2_STATIC_LIBS # dlfcn.h
        depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
        depends on BR2_TOOLCHAIN_HAS_THREADS # beecrypt
        depends on BR2_USE_MMU # fork()