aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/cfg.lua28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index e41b632c..2924e435 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
@@ -137,10 +141,11 @@ local platform_order = {
137 linux = 7, 141 linux = 7,
138 macosx = 8, 142 macosx = 8,
139 cygwin = 9, 143 cygwin = 9,
144 msys = 10,
140 -- Windows 145 -- Windows
141 win32 = 10, 146 win32 = 11,
142 mingw32 = 11, 147 mingw32 = 12,
143 windows = 12 } 148 windows = 13 }
144 149
145 150
146-- Path configuration: 151-- Path configuration:
@@ -518,6 +523,23 @@ if cfg.platforms.cygwin then
518 defaults.variables.LIBFLAG = "-shared" 523 defaults.variables.LIBFLAG = "-shared"
519end 524end
520 525
526if cfg.platforms.msys then
527 -- msys is basically cygwin made out of mingw, meaning the subsytem is unixish
528 -- enough, yet we can freely mix with native win32
529 defaults.external_deps_patterns = {
530 bin = { "?.exe", "?.bat", "?" },
531 lib = { "lib?.so", "lib?.so.*", "lib?.dll.a", "?.dll.a",
532 "lib?.a", "lib?.dll", "?.dll", "?.lib" },
533 include = { "?.h" }
534 }
535 defaults.runtime_external_deps_patterns = {
536 bin = { "?.exe", "?.bat" },
537 lib = { "lib?.so", "?.dll", "lib?.dll" },
538 include = { "?.h" }
539 }
540end
541
542
521if cfg.platforms.bsd then 543if cfg.platforms.bsd then
522 defaults.variables.MAKE = "gmake" 544 defaults.variables.MAKE = "gmake"
523 defaults.variables.STATFLAG = "-f '%OLp'" 545 defaults.variables.STATFLAG = "-f '%OLp'"