From: Jacques Germishuys Date: Tue, 11 Jul 2017 17:25:14 +0000 (+0200) Subject: fix missing symbol 'nanosleep' for Solaris X-Git-Tag: v1.3.1^2~36^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c325c8db82808801a3586694327c7e64bff585f7;p=thirdparty%2Fzstd.git fix missing symbol 'nanosleep' for Solaris --- diff --git a/build/cmake/programs/CMakeLists.txt b/build/cmake/programs/CMakeLists.txt index 98ca6cca0..13dd31572 100644 --- a/build/cmake/programs/CMakeLists.txt +++ b/build/cmake/programs/CMakeLists.txt @@ -31,6 +31,9 @@ ENDIF (MSVC) ADD_EXECUTABLE(zstd ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/fileio.c ${PROGRAMS_DIR}/bench.c ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/dibio.c ${PlatformDependResources}) TARGET_LINK_LIBRARIES(zstd libzstd_static) +IF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)") + TARGET_LINK_LIBRARIES(zstd rt) +ENDIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)") INSTALL(TARGETS zstd RUNTIME DESTINATION "bin") IF (UNIX)