]> source.dussan.org Git - rspamd.git/commitdiff
rspamd: 15/head
authorBradley Giesbrecht <brad@pixilla.com>
Thu, 26 Dec 2013 21:33:10 +0000 (13:33 -0800)
committerBradley Giesbrecht <brad@pixilla.com>
Thu, 26 Dec 2013 21:33:10 +0000 (13:33 -0800)
- Fix building shared on OS X.

CMakeLists.txt

index 290fb95e97b7e67a1ce42e64048fd2e08a7248bf..ffbc2497406bb9289a04e2401d3856105a2857f7 100644 (file)
@@ -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