aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/CMakeLists.txt2
-rw-r--r--src/libstat/learn_cache/sqlite3_cache.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libstat/CMakeLists.txt b/src/libstat/CMakeLists.txt
index 5c4e2bc74..fc9450140 100644
--- a/src/libstat/CMakeLists.txt
+++ b/src/libstat/CMakeLists.txt
@@ -16,9 +16,11 @@ ADD_LIBRARY(rspamd-stat ${LINK_TYPE} ${LIBSTATSRC}
${CLASSIFIERSSRC}
${BACKENDSSRC}
${CACHESSRC})
+
IF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamd-stat PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF(NOT DEBIAN_BUILD)
+
SET_TARGET_PROPERTIES(rspamd-stat PROPERTIES LINKER_LANGUAGE C COMPILE_FLAGS "-DRSPAMD_LIB")
TARGET_LINK_LIBRARIES(rspamd-stat rspamd-server)
TARGET_LINK_LIBRARIES(rspamd-stat sqlite3)
diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c
index 0bde829f7..c92c69a21 100644
--- a/src/libstat/learn_cache/sqlite3_cache.c
+++ b/src/libstat/learn_cache/sqlite3_cache.c
@@ -32,7 +32,7 @@
#include "message.h"
#include <sqlite3.h>
-const char *create_tables_sql =
+static const char *create_tables_sql =
"BEGIN;"
"CREATE TABLE IF NOT EXISTS learns("
"id INTEGER PRIMARY KEY,"