aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-03-17 10:01:12 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-03-17 10:08:07 +0000
commit4f917493bfea63471dc7378cac7916ed19564710 (patch)
treed861ce62ea4ebaef513f8e529a1e715596470e4d
parent5be533976606039dc20d77ed01c1d42732cb2d94 (diff)
downloadrspamd-4f917493bfea63471dc7378cac7916ed19564710.tar.gz
rspamd-4f917493bfea63471dc7378cac7916ed19564710.zip
[Minor] Try to fix link issues
-rw-r--r--contrib/aho-corasick/CMakeLists.txt1
-rw-r--r--contrib/kann/CMakeLists.txt2
-rw-r--r--contrib/libev/CMakeLists.txt1
3 files changed, 4 insertions, 0 deletions
diff --git a/contrib/aho-corasick/CMakeLists.txt b/contrib/aho-corasick/CMakeLists.txt
index 2c431b5b8..f47dbedcd 100644
--- a/contrib/aho-corasick/CMakeLists.txt
+++ b/contrib/aho-corasick/CMakeLists.txt
@@ -4,6 +4,7 @@ SET(AHOCORASICSRC acism_create.c
IF(NOT GPL_RSPAMD_BINARY)
ADD_LIBRARY(rspamd-actrie SHARED ${AHOCORASICSRC})
target_link_libraries(rspamd-actrie glib-2.0)
+ target_link_libraries(rspamd-actrie "${RSPAMD_REQUIRED_LIBRARIES}")
INSTALL(TARGETS rspamd-actrie
LIBRARY DESTINATION ${RSPAMD_LIBDIR})
diff --git a/contrib/kann/CMakeLists.txt b/contrib/kann/CMakeLists.txt
index ba16d5e9f..5f1b17a3f 100644
--- a/contrib/kann/CMakeLists.txt
+++ b/contrib/kann/CMakeLists.txt
@@ -6,6 +6,8 @@ ELSE()
ADD_LIBRARY(rspamd-kann SHARED ${LIBKANNSRC})
ENDIF()
+target_link_libraries(rspamd-kann "${RSPAMD_REQUIRED_LIBRARIES}")
+target_link_libraries(rspamd-kann "m")
IF(WITH_BLAS)
MESSAGE(STATUS "Use openblas to accelerate kann")
TARGET_LINK_LIBRARIES(rspamd-kann ${BLAS_REQUIRED_LIBRARIES})
diff --git a/contrib/libev/CMakeLists.txt b/contrib/libev/CMakeLists.txt
index 03d9df254..b2d33fe49 100644
--- a/contrib/libev/CMakeLists.txt
+++ b/contrib/libev/CMakeLists.txt
@@ -63,6 +63,7 @@ IF(ENABLE_STATIC MATCHES "ON")
ELSE()
ADD_LIBRARY(rspamd-ev SHARED ${LIBEVSRC})
ENDIF()
+target_link_libraries(rspamd-ev "${RSPAMD_REQUIRED_LIBRARIES}")
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
ADD_DEFINITIONS("-DEV_CONFIG_H=\"libev-config.h\""
-DEV_MULTIPLICITY=1