From: Vsevolod Stakhov Date: Thu, 5 Mar 2015 10:38:40 +0000 (+0000) Subject: Fix linkage with luajit on osx. X-Git-Tag: 0.9.0~562 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71993413ec7829fec777248d3a8c444532f57ec2;p=rspamd.git Fix linkage with luajit on osx. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a876c4d78..5c26cfbf8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -317,7 +317,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") - + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pagezero_size 10000 -image_base 100000000") MESSAGE(STATUS "Configuring for Darwin") ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")