aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cfg.lua30
1 files changed, 26 insertions, 4 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index f4e50eff..0099ec3a 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -113,6 +113,10 @@ elseif system == "SunOS" then
113elseif system and system:match("^CYGWIN") then 113elseif system and system:match("^CYGWIN") then
114 cfg.platforms.unix = true 114 cfg.platforms.unix = true
115 cfg.platforms.cygwin = true 115 cfg.platforms.cygwin = true
116elseif system and system:match("^MSYS") then
117 cfg.platforms.unix = true
118 cfg.platforms.msys = true
119 cfg.platforms.cygwin = true
116elseif system and system:match("^Windows") then 120elseif system and system:match("^Windows") then
117 cfg.platforms.windows = true 121 cfg.platforms.windows = true
118 cfg.platforms.win32 = true 122 cfg.platforms.win32 = true
@@ -140,11 +144,12 @@ local platform_order = {
140 linux = 7, 144 linux = 7,
141 macosx = 8, 145 macosx = 8,
142 cygwin = 9, 146 cygwin = 9,
143 haiku = 10, 147 msys = 10,
148 haiku = 11,
144 -- Windows 149 -- Windows
145 win32 = 11, 150 win32 = 12,
146 mingw32 = 12, 151 mingw32 = 13,
147 windows = 13 } 152 windows = 14 }
148 153
149-- Path configuration: 154-- Path configuration:
150local sys_config_file, home_config_file 155local sys_config_file, home_config_file
@@ -521,6 +526,23 @@ if cfg.platforms.cygwin then
521 defaults.variables.LIBFLAG = "-shared" 526 defaults.variables.LIBFLAG = "-shared"
522end 527end
523 528
529if cfg.platforms.msys then
530 -- msys is basically cygwin made out of mingw, meaning the subsytem is unixish
531 -- enough, yet we can freely mix with native win32
532 defaults.external_deps_patterns = {
533 bin = { "?.exe", "?.bat", "?" },
534 lib = { "lib?.so", "lib?.so.*", "lib?.dll.a", "?.dll.a",
535 "lib?.a", "lib?.dll", "?.dll", "?.lib" },
536 include = { "?.h" }
537 }
538 defaults.runtime_external_deps_patterns = {
539 bin = { "?.exe", "?.bat" },
540 lib = { "lib?.so", "?.dll", "lib?.dll" },
541 include = { "?.h" }
542 }
543end
544
545
524if cfg.platforms.bsd then 546if cfg.platforms.bsd then
525 defaults.variables.MAKE = "gmake" 547 defaults.variables.MAKE = "gmake"
526 defaults.variables.STATFLAG = "-f '%OLp'" 548 defaults.variables.STATFLAG = "-f '%OLp'"