From: Vsevolod Stakhov Date: Thu, 5 Mar 2015 18:33:25 +0000 (+0000) Subject: Properly link rspamd_server on darwin. X-Git-Tag: 0.9.0~551 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f8d613c23448ee723e08d6640640037df3f98b3;p=rspamd.git Properly link rspamd_server on darwin. --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1e0495c1f..5d1f0aaab 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -21,7 +21,7 @@ ADD_DEPENDENCIES(rspamd-test rspamd-server) IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-whole-archive ../src/librspamd-server.a -Wl,-no-whole-archive") ELSE(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") - TARGET_LINK_LIBRARIES(rspamd-test rspamd-server) + TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-force_load ../src/librspamd-server.a") ENDIF(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") TARGET_LINK_LIBRARIES(rspamd-test rspamd-cdb) TARGET_LINK_LIBRARIES(rspamd-test rspamd-http-parser)