]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another fix for static build
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Nov 2016 12:44:58 +0000 (12:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Nov 2016 12:44:58 +0000 (12:44 +0000)
CMakeLists.txt

index 28019d77dc2bca3c723cab7755872aa4a10f5927..c9d1f7b6df53c88cc9063d492b018d72d975c3ef 100644 (file)
@@ -657,6 +657,10 @@ ProcessPackage(GLIB2 LIBRARY glib-2.0 INCLUDE glib.h
 ProcessPackage(GMODULE2 LIBRARY gmodule-2.0 INCLUDE glib.h
        INCLUDE_SUFFIXES include/glib include/glib-2.0
        ROOT ${GLIB_ROOT_DIR} MODULES gmodule-no-export-2.0>=2.28 gmodule-2.0>=2.28)
+IF(GLIB_ROOT_DIR)
+       LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lpthread")
+       LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lffi")
+ENDIF()
 
 IF(ENABLE_PCRE2 MATCHES "ON")
        ProcessPackage(PCRE LIBRARY pcre2 INCLUDE pcre2.h INCLUDE_SUFFIXES include/pcre2