From fb93696e2b640478bbe6ba4753e6eeb7693d751d Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Tue, 27 May 2014 02:18:24 +0200 Subject: handle static libraries for multiple versions of a rock --- src/luarocks/path.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua index 598e51d9..519f32b0 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua @@ -251,6 +251,11 @@ function path.path_to_module(file) name = file:match("(.*)%."..cfg.lib_extension.."$") if name then name = name:gsub(dir.separator, ".") + else + name = file:match("(.*)%."..cfg.static_lib_extension.."$") + if name then + name = name:gsub(dir.separator, ".") + end end end if not name then name = file end -- cgit v1.2.3-55-g6feb