diff options
-rw-r--r-- | cmake/OSDep.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/OSDep.cmake b/cmake/OSDep.cmake index 78f6549cd..f2bd56cec 100644 --- a/cmake/OSDep.cmake +++ b/cmake/OSDep.cmake @@ -23,7 +23,9 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin") ADD_COMPILE_OPTIONS(-D_BSD_SOURCE -DDARWIN) SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -undefined dynamic_lookup") IF(ENABLE_LUAJIT MATCHES "ON") - SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pagezero_size 10000 -image_base 100000000") + IF ("${ARCH}" STREQUAL "x86_64") + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pagezero_size 10000 -image_base 100000000") + ENDIF() ENDIF(ENABLE_LUAJIT MATCHES "ON") MESSAGE(STATUS "Configuring for Darwin") SET(TAR "gnutar") |