]> source.dussan.org Git - rspamd.git/commitdiff
Fix symbols deps.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Nov 2013 16:34:51 +0000 (16:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Nov 2013 16:34:51 +0000 (16:34 +0000)
src/logger.h
src/lua/CMakeLists.txt

index 2fbe4896cfa8177a7d4cdccb7f91a30dc5f3874e..46bf31a9636e1c362f7998297ce0970037ca9dfe 100644 (file)
@@ -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__)
index 10606a909d9e019fbd9abd17e2cfb17384733c9d..c4ac678a9e34f65501b76e35829edf6b8f049273 100644 (file)
@@ -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