1
0

Merge pull request #522 from mc-server/LuaDlFix

Lua dl fix
This commit is contained in:
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 for k, v in pairs(headers or {}) do
LOG(" " .. k .. ": " .. v); LOG(" " .. k .. ": " .. v);
end end
LOG("body length: " .. string.length(body)); LOG("body length: " .. string.len(body));

View File

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