package/libzip: fix build with musl-fts
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 11 Oct 2019 17:26:15 +0000 (19:26 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 11 Oct 2019 20:06:15 +0000 (22:06 +0200)
Fixes:
 - http://autobuild.buildroot.org/results/89f5fc111bb8bcecbe05ab79d62ac809094b6ce1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libzip/Config.in
package/libzip/libzip.mk

index f69dd0d4d5f3a78bbc3d88dfc408cea057e5379c..c6ddabe6b5e98d9d1b1910e466e6e08f8b64e9a7 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LIBZIP
        bool "libzip"
        depends on !BR2_STATIC_LIBS # dlsym()
+       select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
        select BR2_PACKAGE_ZLIB
        help
          C library for reading, creating, and modifying zip archives.
index 280ca6d8c7458ee1fda04b94ac427eca477b1af7..a312dd90df2ae8bf6e22118c218d3a4983b2d537 100644 (file)
@@ -33,5 +33,10 @@ else
 LIBZIP_CONF_OPTS += -DENABLE_OPENSSL=OFF
 endif
 
+ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
+LIBZIP_DEPENDENCIES += musl-fts
+LIBZIP_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-lfts
+endif
+
 $(eval $(cmake-package))
 $(eval $(host-cmake-package))