commit 4f91749: [Minor] Try to fix link issues

Vsevolod Stakhov vsevolod at rspamd.com
Fri Mar 17 10:14:04 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-03-17 10:01:12 +0000
URL: https://github.com/rspamd/rspamd/commit/4f917493bfea63471dc7378cac7916ed19564710 (HEAD -> master)

[Minor] Try to fix link issues

---
 contrib/aho-corasick/CMakeLists.txt | 1 +
 contrib/kann/CMakeLists.txt         | 2 ++
 contrib/libev/CMakeLists.txt        | 1 +
 3 files changed, 4 insertions(+)

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


More information about the Commits mailing list