From: Vsevolod Stakhov Date: Sat, 26 Nov 2016 12:44:58 +0000 (+0000) Subject: [Minor] Another fix for static build X-Git-Tag: 1.4.1~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6ceb8518d29def9ec450ed0f4ae96959d4851a8;p=rspamd.git [Minor] Another fix for static build --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 28019d77d..c9d1f7b6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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