1
0
Fork 0

Removing unnecessary library "z" by cross-compiling

This commit is contained in:
servusoft 2016-07-25 16:46:30 +02:00 committed by GitHub
parent f18f21c7d4
commit 7abe288086
1 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,11 @@ elseif (UNIX AND NOT APPLE)
set(LINUX TRUE)
set(OS_DEFINE "OS_LINUX")
set(POSIX_FLAG "-DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX")
set(SYSTEM_LIBS pthread rt z)
if (CROSS_COMPILING)
set(SYSTEM_LIBS pthread rt)
else()
set(SYSTEM_LIBS pthread rt z)
endif ()
elseif (CMAKE_SYSTEM_NAME MATCHES "kFreeBSD.*")
set(FREEBSD TRUE)
set(OS_DEFINE "OS_FREEBSD")