From 571f92c7f6d965278f3ab38a5c8ee3ddeaa6f514 Mon Sep 17 00:00:00 2001 From: proller Date: Wed, 22 Nov 2017 17:03:09 +0300 Subject: [PATCH] Freebsd: zlib: dont use optimizations (broken asm) --- cmake/find_zlib.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/find_zlib.cmake b/cmake/find_zlib.cmake index 3b41280f1c5..d38ef13a5e9 100644 --- a/cmake/find_zlib.cmake +++ b/cmake/find_zlib.cmake @@ -8,6 +8,9 @@ if (NOT ZLIB_FOUND) set (USE_INTERNAL_ZLIB_LIBRARY 1) set (ZLIB_COMPAT 1) # for zlib-ng, also enables WITH_GZFILEOP set (WITH_NATIVE_INSTRUCTIONS ${ARCHNATIVE}) + if (CMAKE_SYSTEM MATCHES "FreeBSD") + set (WITH_OPTIM 0 CACHE INTERNAL "") # Bug in assembler + endif () set (ZLIB_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libzlib-ng" "${ClickHouse_BINARY_DIR}/contrib/libzlib-ng") # generated zconf.h set (ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIR}) # for poco set (ZLIB_FOUND 1) # for poco