aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-04-26 11:41:10 -0300
committerHisham Muhammad <hisham@gobolinux.org>2019-04-26 11:55:59 -0300
commitd534a32241aab49c18bae1b21f40f856baa22ab0 (patch)
treec54248544f380fae092f8183e71e6e4670e45193
parent18b9a94491a80a1bbe62a92103b8d8ba1bb1487e (diff)
downloadluarocks-d534a32241aab49c18bae1b21f40f856baa22ab0.tar.gz
luarocks-d534a32241aab49c18bae1b21f40f856baa22ab0.tar.bz2
luarocks-d534a32241aab49c18bae1b21f40f856baa22ab0.zip
Fix build of binaries
-rwxr-xr-xbinary/all_in_one1
-rw-r--r--src/luarocks/core/cfg.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/binary/all_in_one b/binary/all_in_one
index d38fe706..4b674365 100755
--- a/binary/all_in_one
+++ b/binary/all_in_one
@@ -419,6 +419,7 @@ local function generate(main_program, dir, skip)
419 --if_platform("windows", "mingw/liblua.a"), -- FIXME 419 --if_platform("windows", "mingw/liblua.a"), -- FIXME
420 cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a"), 420 cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a"),
421 if_platform("unix", "-ldl"), 421 if_platform("unix", "-ldl"),
422 if_platform("unix", "-lpthread"),
422 "-lm" 423 "-lm"
423 }), " ") 424 }), " ")
424 print(cmd) 425 print(cmd)
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index fd74ff98..02fb564b 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -560,7 +560,7 @@ function cfg.init(detected, warning)
560 local lua_bindir = detected.lua_bindir or hardcoded.LUA_BINDIR or (arg and arg[-1] and arg[-1]:gsub("[\\/][^\\/]+$", "")) 560 local lua_bindir = detected.lua_bindir or hardcoded.LUA_BINDIR or (arg and arg[-1] and arg[-1]:gsub("[\\/][^\\/]+$", ""))
561 local lua_incdir = detected.lua_incdir or hardcoded.LUA_INCDIR 561 local lua_incdir = detected.lua_incdir or hardcoded.LUA_INCDIR
562 local lua_libdir = detected.lua_libdir or hardcoded.LUA_LIBDIR 562 local lua_libdir = detected.lua_libdir or hardcoded.LUA_LIBDIR
563 local lua_dir = detected.lua_dir or hardcoded.LUA_DIR 563 local lua_dir = detected.lua_dir or hardcoded.LUA_DIR or (lua_bindir and lua_bindir:gsub("[\\/]bin$", ""))
564 564
565 local init = cfg.init 565 local init = cfg.init
566 566