summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBradley Giesbrecht <brad@pixilla.com>2013-12-26 13:33:10 -0800
committerBradley Giesbrecht <brad@pixilla.com>2013-12-26 13:33:10 -0800
commit6e08ff77f24cb0b1a35676041624f82bc4f1edd6 (patch)
treeb07c1091bd12133286d43b82d8524ff255682c49 /CMakeLists.txt
parent6059f47851d8475794b9e93be1aa789331f91908 (diff)
downloadrspamd-6e08ff77f24cb0b1a35676041624f82bc4f1edd6.tar.gz
rspamd-6e08ff77f24cb0b1a35676041624f82bc4f1edd6.zip
rspamd:
- Fix building shared on OS X.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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