Try to fix libharmful fail

This commit is contained in:
Robert Schulze 2022-07-30 21:46:50 +00:00
parent d834d9e137
commit 7fe106a0fb
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -324,7 +324,11 @@ clickhouse_add_executable (clickhouse main.cpp)
# A library that prevent usage of several functions from libc.
if (ARCH_AMD64 AND OS_LINUX AND NOT OS_ANDROID)
set (HARMFUL_LIB harmful)
if (NOT USE_STATIC_LIBRARIES AND SPLIT_SHARED_LIBRARIES)
# shared libraries dev build: not exactly clear why but the server doesn't come up in CI smoke test when libharmful is linked
else ()
set (HARMFUL_LIB harmful)
endif ()
endif ()
target_link_libraries (clickhouse PRIVATE clickhouse_common_io string_utils ${HARMFUL_LIB})