From: Bradley Giesbrecht Date: Thu, 26 Dec 2013 21:33:10 +0000 (-0800) Subject: rspamd: X-Git-Tag: 0.6.6~7^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F15%2Fhead;p=rspamd.git rspamd: - Fix building shared on OS X. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 290fb95e9..ffbc24974 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -332,6 +332,7 @@ ENDIF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_BSD_SOURCE -DDARWIN") + SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -undefined dynamic_lookup") FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl PATHS /lib /opt/lib