Specified the dynamic loader Lua should use.

master
madmaxoft 2014-01-09 08:05:08 +01:00
parent 71946f5671
commit 53e2ed8473
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,15 @@ else()
add_library(lua ${SOURCE})
endif()
# Tell Lua what dynamic loader to use (for LuaRocks):
if (UNIX)
if (APPLE)
add_definitions(-DLUA_USE_MACOSX)
else()
add_definitions(-DLUA_USE_LINUX)
endif ()
endif()
if (UNIX)
target_link_libraries(lua m ${DYNAMIC_LOADER})
endif()