]> source.dussan.org Git - rspamd.git/commitdiff
Include the whole rspamd-server for ffi.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Feb 2015 22:15:23 +0000 (22:15 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Feb 2015 22:15:23 +0000 (22:15 +0000)
test/CMakeLists.txt

index 18a826026f1641c2aa915987967fd3c997020c69..51e2e77f1624a92d75a47b8b1e6364df3cb9a333 100644 (file)
@@ -18,7 +18,9 @@ ADD_EXECUTABLE(rspamd-test EXCLUDE_FROM_ALL ${TESTSRC})
 SET_TARGET_PROPERTIES(rspamd-test PROPERTIES LINKER_LANGUAGE C)
 SET_TARGET_PROPERTIES(rspamd-test PROPERTIES COMPILE_FLAGS "-DRSPAMD_TEST")
 
-TARGET_LINK_LIBRARIES(rspamd-test rspamd-server)
+TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-whole-archive ../src/librspamd-server.a -Wl,-no-whole-archive")
+TARGET_LINK_LIBRARIES(rspamd-test rspamd-cdb)
+TARGET_LINK_LIBRARIES(rspamd-test rspamd-http-parser)
 TARGET_LINK_LIBRARIES(rspamd-test ${RSPAMD_REQUIRED_LIBRARIES})
 TARGET_LINK_LIBRARIES(rspamd-test stemmer)