libzip: depend on !BR2_STATIC_LIBS
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 5 Jul 2017 07:56:20 +0000 (09:56 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 09:35:51 +0000 (11:35 +0200)
Since version 1.2.0 libzip requires dynamic library capabilities. Add
it to Config.in and propagate this dependency to packages selecting
libzip.

Fixes:

  http://autobuild.buildroot.net/results/c50ffa5bf565e75333192edc89e2d39044d07f26/

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libsigrok/Config.in
package/libzip/Config.in
package/pulseview/Config.in
package/sigrok-cli/Config.in

index d2d022ebf126dbf89c2eca8b83c0306a22e32bf1..658d029e7faeaff114967f42358a688b1d593f59 100644 (file)
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBSIGROK
        depends on BR2_USE_WCHAR
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU
+       depends on !BR2_STATIC_LIBS # libzip
        # std=c11
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
        select BR2_PACKAGE_LIBZIP
@@ -34,6 +35,7 @@ comment "C++ bindings need a toolchain w/ C++, gcc >= 4.8"
 
 endif
 
-comment "libsigrok needs a toolchain w/ wchar, threads, gcc >= 4.7"
+comment "libsigrok needs a toolchain w/ wchar, threads, dynamic library, gcc >= 4.7"
        depends on BR2_USE_MMU
-       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \
+               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || BR2_STATIC_LIBS
index 54de9e5af20cba7518bfaeb217bda5a1759bc9d3..6c952ac466aa4429130a5f3d55b0a1a33de5d161 100644 (file)
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBZIP
        bool "libzip"
+       depends on !BR2_STATIC_LIBS # dlsym()
        select BR2_PACKAGE_ZLIB
        help
          C library for reading, creating, and modifying zip archives. This
          package also contains zipcmp, ziptorrent and zipmerge utilities.
 
          http://www.nih.at/libzip/
+
+comment "libzip needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS
index 81c73e352bc8ae613ead14752f466563a3f43031..926376e785690710d961a1de5b217c4f2458c858 100644 (file)
@@ -6,6 +6,8 @@ config BR2_PACKAGE_PULSEVIEW
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU
        depends on BR2_INSTALL_LIBSTDCPP
+       # libsigrok->libzip
+       depends on !BR2_STATIC_LIBS
        # libsigrok
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
        select BR2_PACKAGE_LIBSIGROK
@@ -24,8 +26,8 @@ config BR2_PACKAGE_PULSEVIEW
 
          http://sigrok.org/wiki/PulseView
 
-comment "pulseview needs a toolchain w/ wchar, threads, C++, gcc >= 4.8"
+comment "pulseview needs a toolchain w/ wchar, threads, dynamic library, C++, gcc >= 4.8"
        depends on BR2_USE_MMU
        depends on BR2_PACKAGE_QT5
        depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR \
-               || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
+               || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
index 236166595d05c66f740821bcd30f55b480671b35..75bd8c6d5af85535d6fbad24bf5b9e6b71d61dac 100644 (file)
@@ -4,6 +4,8 @@ config BR2_PACKAGE_SIGROK_CLI
        depends on BR2_USE_WCHAR
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU
+       # libsigrok->libzip
+       depends on !BR2_STATIC_LIBS
        # libsigrok
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
        select BR2_PACKAGE_LIBSIGROK
@@ -13,6 +15,7 @@ config BR2_PACKAGE_SIGROK_CLI
 
          http://sigrok.org/wiki/Sigrok-cli
 
-comment "sigrok-cli needs a toolchain w/ wchar, threads, gcc >= 4.7"
+comment "sigrok-cli needs a toolchain w/ wchar, threads, dynamic library, gcc >= 4.7"
        depends on BR2_USE_MMU
-       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \
+               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || BR2_STATIC_LIBS