diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-21 12:57:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-21 12:57:12 +0100 |
commit | c0646f71d680370e960bc52e45081fd65b60d782 (patch) | |
tree | cf16f830cf3d5920d9bda1823fb822077adc01cd /contrib | |
parent | c784381ff5ec5b6cd22f3124256da77564c8a19b (diff) | |
download | rspamd-c0646f71d680370e960bc52e45081fd65b60d782.tar.gz rspamd-c0646f71d680370e960bc52e45081fd65b60d782.zip |
Add special hacks to allow static build.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/aho-corasick/CMakeLists.txt | 12 | ||||
m--------- | contrib/snowball | 0 |
2 files changed, 9 insertions, 3 deletions
diff --git a/contrib/aho-corasick/CMakeLists.txt b/contrib/aho-corasick/CMakeLists.txt index d185245cb..4b1a75773 100644 --- a/contrib/aho-corasick/CMakeLists.txt +++ b/contrib/aho-corasick/CMakeLists.txt @@ -3,6 +3,12 @@ SET(AHOCORASICSRC acism_create.c if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") endif () -ADD_LIBRARY(rspamd-actrie SHARED ${AHOCORASICSRC}) -INSTALL(TARGETS rspamd-actrie - LIBRARY DESTINATION ${RSPAMD_LIBDIR}) + +IF(NOT GPL_RSPAMD_BINARY) + ADD_LIBRARY(rspamd-actrie SHARED ${AHOCORASICSRC}) + + INSTALL(TARGETS rspamd-actrie + LIBRARY DESTINATION ${RSPAMD_LIBDIR}) +ELSE() + ADD_LIBRARY(rspamd-actrie STATIC ${AHOCORASICSRC}) +ENDIF() diff --git a/contrib/snowball b/contrib/snowball -Subproject 4bc9f365c4b674d0dd0cfd14c314a866f00e088 +Subproject c381f4fa958b59d41b0c596f0cbfe3ed48831e9 |