From 4a2d353efd083b9c553a22ecb877f216ceee05ec Mon Sep 17 00:00:00 2001 From: Oleg Babin Date: Tue, 1 Feb 2022 16:56:10 +0300 Subject: [PATCH] disable zstd linking in static build It's quite strange but Linux build doesn't require zstd symbols - it fails only if zstd explicitly enabled. On OS X behaviour is different. So let's disable zstd compression for macos static build. Anyway we don't use macos in production. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f45f28d..bed59a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ message("Found OPENSSL version: ${OPENSSL_VERSION}") if(STATIC_BUILD) add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/librdkafka/lib/librdkafka.a - COMMAND ./configure --enable-ssl --prefix=${CMAKE_BINARY_DIR}/librdkafka + COMMAND ./configure --enable-ssl --disable-zstd --prefix=${CMAKE_BINARY_DIR}/librdkafka COMMAND make -j COMMAND make install WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/librdkafka