Merge pull request #522 from mc-server/LuaDlFix

Lua dl fix
master
Mattes D 2014-01-10 08:27:43 -08:00
commit e213769216
2 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,7 @@ LOG("headers: ");
for k, v in pairs(headers or {}) do
LOG(" " .. k .. ": " .. v);
end
LOG("body length: " .. string.length(body));
LOG("body length: " .. string.len(body));

View File

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