Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/CMakeLists.txt: fix static build with a zlib and mbedtls
Static build with a zlib-enabled mbedtls fails on: [100%] Linking C executable example /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: /home/buildroot/autobuild/instance-3/output-1/host/arm-buildroot-uclinux-uclibcgnueabi/sysroot/usr/lib/libmbedtls.a(ssl_tls.c.o): in function `mbedtls_ssl_transform_free.part.24': ssl_tls.c:(.text+0xbc6): undefined reference to `deflateEnd' As mbedtls does not provide a pkg-config file, search for zlib and link with it if necessary Fixes: - http://autobuild.buildroot.org/results/5891d12e90182460cde1ddfa0ca75e9fd55e3dff Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
- Loading branch information