diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2020-01-24 19:37:07 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-01-25 22:04:11 -0300 |
commit | 2e5748e5ade1566fa2e479aa4f38c0b46fe0ba79 (patch) | |
tree | e6e37abce836d5b1f214e22e84ccf117a4ee47fd | |
parent | b4a6ec6c7c32e7db2770aa2d9f89497e6ef82b13 (diff) | |
download | luarocks-2e5748e5ade1566fa2e479aa4f38c0b46fe0ba79.tar.gz luarocks-2e5748e5ade1566fa2e479aa4f38c0b46fe0ba79.tar.bz2 luarocks-2e5748e5ade1566fa2e479aa4f38c0b46fe0ba79.zip |
Windows: force .lib for LUALIB
-rw-r--r-- | src/luarocks/deps.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index f80fddb0..b72661b7 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua | |||
@@ -544,6 +544,10 @@ local function check_external_dependency(name, ext_files, vars, mode, cache) | |||
544 | dirs.LIBDIR.pattern = fun.filter(util.deep_copy(dirs.LIBDIR.pattern), function(s) | 544 | dirs.LIBDIR.pattern = fun.filter(util.deep_copy(dirs.LIBDIR.pattern), function(s) |
545 | return not s:match("%.a$") | 545 | return not s:match("%.a$") |
546 | end) | 546 | end) |
547 | elseif cfg.is_platform("windows") and name == "LUA" then | ||
548 | dirs.LIBDIR.pattern = fun.filter(util.deep_copy(dirs.LIBDIR.pattern), function(s) | ||
549 | return not s:match("%.dll$") | ||
550 | end) | ||
547 | end | 551 | end |
548 | ok, err_dirname, err_testfile = check_external_dependency_at(prefix, name, ext_files, vars, dirs, err_files, cache) | 552 | ok, err_dirname, err_testfile = check_external_dependency_at(prefix, name, ext_files, vars, dirs, err_files, cache) |
549 | if ok then | 553 | if ok then |