aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-20 16:34:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-20 16:34:51 +0000
commit0dff55c8797357cf6c7ce9335cbd014d75a711cf (patch)
treeb0f316f12c6790fa92857b9309a8f18b3a6861a7 /src
parentc370177c68eb3b327a9abef4e139dbad64db0a7a (diff)
downloadrspamd-0dff55c8797357cf6c7ce9335cbd014d75a711cf.tar.gz
rspamd-0dff55c8797357cf6c7ce9335cbd014d75a711cf.zip
Fix symbols deps.
Diffstat (limited to 'src')
-rw-r--r--src/logger.h2
-rw-r--r--src/lua/CMakeLists.txt7
2 files changed, 8 insertions, 1 deletions
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