Skip to content

Commit

Permalink
Merge pull request #21 from PowerDNS/luajit-osx
Browse files Browse the repository at this point in the history
luajit: link binaries with necessary flags on osx
  • Loading branch information
Habbie authored Mar 23, 2017
2 parents 9763568 + 4693393 commit 670a4fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FindLuaJIT51.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ IF(LUA_LIBRARY)
SET( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries")
# For Windows and Mac, don't need to explicitly include the math library
ELSE(UNIX AND NOT APPLE)
SET( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries")
IF(APPLE)
# For Mac, need these flags to build working binaries
SET( LUA_LIBRARIES "${LUA_LIBRARY};-pagezero_size 10000;-image_base 100000000" CACHE STRING "Lua Libraries")
ELSE(APPLE)
SET( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries")
ENDIF(APPLE)
ENDIF(UNIX AND NOT APPLE)
ENDIF(LUA_LIBRARY)

Expand Down

0 comments on commit 670a4fc

Please sign in to comment.