From 0dff55c8797357cf6c7ce9335cbd014d75a711cf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Nov 2013 16:34:51 +0000 Subject: [PATCH] Fix symbols deps. --- src/logger.h | 2 +- src/lua/CMakeLists.txt | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/logger.h b/src/logger.h index 2fbe4896c..46bf31a96 100644 --- a/src/logger.h +++ b/src/logger.h @@ -88,7 +88,7 @@ void rspamd_log_nodebug (rspamd_logger_t *logger); /* Typical functions */ /* Logging in postfix style */ -#if (defined(RSPAMD_MAIN) || defined(RSPAMD_LIB) || defined(RSPAMD_TEST)) +#if defined(RSPAMD_MAIN) #define msg_err(...) rspamd_common_log_function(rspamd_main->logger, G_LOG_LEVEL_CRITICAL, __FUNCTION__, __VA_ARGS__) #define msg_warn(...) rspamd_common_log_function(rspamd_main->logger, G_LOG_LEVEL_WARNING, __FUNCTION__, __VA_ARGS__) #define msg_info(...) rspamd_common_log_function(rspamd_main->logger, G_LOG_LEVEL_INFO, __FUNCTION__, __VA_ARGS__) diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt index 10606a909..c4ac678a9 100644 --- a/src/lua/CMakeLists.txt +++ b/src/lua/CMakeLists.txt @@ -28,6 +28,13 @@ IF(ENABLE_LUAJIT MATCHES "ON") ELSE(ENABLE_LUAJIT MATCHES "ON") TARGET_LINK_LIBRARIES(rspamd-lua "${LUA_LIBRARY}") ENDIF(ENABLE_LUAJIT MATCHES "ON") +TARGET_LINK_LIBRARIES(rspamd-lua ${GLIB2_LIBRARIES}) +IF(GMIME24) + TARGET_LINK_LIBRARIES(rspamd-lua ${GMIME24_LIBRARIES}) +ELSE(GMIME24) + TARGET_LINK_LIBRARIES(rspamd-lua ${GMIME2_LIBRARIES}) +ENDIF(GMIME24) +TARGET_LINK_LIBRARIES(rspamd-lua rspamd-cdb) SET_TARGET_PROPERTIES(rspamd-lua PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB") IF(NO_SHARED MATCHES "OFF") INSTALL(TARGETS rspamd-lua -- 2.39.5