Skip to content

Commit

Permalink
disable zstd linking in static build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olegrok committed Feb 1, 2022
1 parent 83ee6e8 commit 4a2d353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a2d353

Please sign in to comment.