]> source.dussan.org Git - rspamd.git/commitdiff
acism: Add missing glib dependency 1195/head
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Nov 2016 12:15:12 +0000 (13:15 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Nov 2016 12:15:12 +0000 (13:15 +0100)
This library uses g_ascii_tolower()

contrib/aho-corasick/CMakeLists.txt
contrib/aho-corasick/acism.c

index 4b1a757736b9372abaae7ddedacd80d799646170..ea300253fde867eab4ace33edf3930f8197efa1a 100644 (file)
@@ -6,9 +6,11 @@ endif ()
 
 IF(NOT GPL_RSPAMD_BINARY)
        ADD_LIBRARY(rspamd-actrie SHARED ${AHOCORASICSRC})
+       target_link_libraries(rspamd-actrie glib-2.0)
 
        INSTALL(TARGETS rspamd-actrie
                        LIBRARY DESTINATION ${RSPAMD_LIBDIR})
 ELSE()
        ADD_LIBRARY(rspamd-actrie STATIC ${AHOCORASICSRC})
+       target_link_libraries(rspamd-actrie glib-2.0)
 ENDIF()
index 1117048051728b1f63a5a2727bbd67ac17d836b1..a0b478ad89680ba0e2da1d0b5e002923c8781812 100644 (file)
@@ -17,6 +17,8 @@
 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
 
+#include <glib.h>
+
 #include "_acism.h"
 #include "unix-std.h"