]> source.dussan.org Git - rspamd.git/commitdiff
Properly link rspamd_server on darwin.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Mar 2015 18:33:25 +0000 (18:33 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Mar 2015 18:33:25 +0000 (18:33 +0000)
test/CMakeLists.txt

index 1e0495c1fc167572163a298e7baf0a9213b6445a..5d1f0aaab6d68443479c37c2fd5cdea69f94e8cb 100644 (file)
@@ -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)