diff options
Diffstat (limited to '')
-rw-r--r-- | src/luarocks/cfg.lua | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 9227db4b..94afe0a0 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -254,12 +254,12 @@ local defaults = { | |||
254 | STATFLAG = "-c '%a'", | 254 | STATFLAG = "-c '%a'", |
255 | }, | 255 | }, |
256 | 256 | ||
257 | external_deps_subdirs = { | 257 | external_deps_subdirs = site_config.LUAROCKS_EXTERNAL_DEPS_SUBDIRS or { |
258 | bin = "bin", | 258 | bin = "bin", |
259 | lib = "lib", | 259 | lib = "lib", |
260 | include = "include" | 260 | include = "include" |
261 | }, | 261 | }, |
262 | runtime_external_deps_subdirs = { | 262 | runtime_external_deps_subdirs = site_config.LUAROCKS_RUNTIME_EXTERNAL_DEPS_SUBDIRS or { |
263 | bin = "bin", | 263 | bin = "bin", |
264 | lib = "lib", | 264 | lib = "lib", |
265 | include = "include" | 265 | include = "include" |
@@ -437,23 +437,6 @@ if detected.solaris then | |||
437 | defaults.variables.MAKE = "gmake" | 437 | defaults.variables.MAKE = "gmake" |
438 | end | 438 | end |
439 | 439 | ||
440 | if type(site_config.LUAROCKS_ADD_LIB_SUBDIRS) == "table" and next(site_config.LUAROCKS_ADD_LIB_SUBDIRS) ~= nil then | ||
441 | local lib = defaults.external_deps_subdirs.lib | ||
442 | if type(lib) ~= "table" then | ||
443 | lib = { lib } | ||
444 | end | ||
445 | local rt_lib = defaults.runtime_external_deps_subdirs.lib | ||
446 | if type(rt_lib) ~= "table" then | ||
447 | rt_lib = { rt_lib } | ||
448 | end | ||
449 | for i,v in ipairs(site_config.LUAROCKS_ADD_LIB_SUBDIRS) do | ||
450 | lib[#lib+1] = v | ||
451 | rt_lib[#rt_lib+1] = v | ||
452 | end | ||
453 | defaults.external_deps_subdirs.lib = lib | ||
454 | defaults.runtime_external_deps_subdirs.lib = rt_lib | ||
455 | end | ||
456 | |||
457 | -- Expose some more values detected by LuaRocks for use by rockspec authors. | 440 | -- Expose some more values detected by LuaRocks for use by rockspec authors. |
458 | defaults.variables.LIB_EXTENSION = defaults.lib_extension | 441 | defaults.variables.LIB_EXTENSION = defaults.lib_extension |
459 | defaults.variables.OBJ_EXTENSION = defaults.obj_extension | 442 | defaults.variables.OBJ_EXTENSION = defaults.obj_extension |