package/firmware-utils: needs dynamic library

As usual with cmake packages, static builds are not supported and result
in the following build failure:

/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/9.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/powerpc-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.a(c_zlib.o): in function `zlib_stateful_expand_block':
c_zlib.c:(.text+0x54): undefined reference to `inflate'

Instead of patching CMakeLists.txt to add a call to pkg-config, add a
dependency on dynamic library

Fixes:
 - http://autobuild.buildroot.org/results/16a89075e6a809a551e7155a64a4e6b6701428e1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2021-11-13 17:04:44 +01:00 committed by Thomas Petazzoni
parent ea9a411a3f
commit eeb5cc0eeb

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_FIRMWARE_UTILS
bool "firmware-utils"
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
select BR2_PACKAGE_ZLIB
@ -14,3 +15,6 @@ config BR2_PACKAGE_FIRMWARE_UTILS
extract a part of firmware image and flash it.
https://git.openwrt.org/?p=project/firmware-utils.git;a=summary
comment "firmware-utils needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS