diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2014-05-27 02:18:24 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2014-05-27 02:18:24 +0200 |
commit | fb93696e2b640478bbe6ba4753e6eeb7693d751d (patch) | |
tree | 29cf96b99e88abc278e2a254da6226848817d070 /src | |
parent | 85b8c8cc20a58a2c769ee323aa1283ad94e2b2f4 (diff) | |
download | luarocks-fb93696e2b640478bbe6ba4753e6eeb7693d751d.tar.gz luarocks-fb93696e2b640478bbe6ba4753e6eeb7693d751d.tar.bz2 luarocks-fb93696e2b640478bbe6ba4753e6eeb7693d751d.zip |
handle static libraries for multiple versions of a rock
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/path.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
251 | name = file:match("(.*)%."..cfg.lib_extension.."$") | 251 | name = file:match("(.*)%."..cfg.lib_extension.."$") |
252 | if name then | 252 | if name then |
253 | name = name:gsub(dir.separator, ".") | 253 | name = name:gsub(dir.separator, ".") |
254 | else | ||
255 | name = file:match("(.*)%."..cfg.static_lib_extension.."$") | ||
256 | if name then | ||
257 | name = name:gsub(dir.separator, ".") | ||
258 | end | ||
254 | end | 259 | end |
255 | end | 260 | end |
256 | if not name then name = file end | 261 | if not name then name = file end |