aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cfg.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 8527ba52..af1062f8 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -77,6 +77,9 @@ elseif system == "Darwin" then
77elseif system == "Linux" then 77elseif system == "Linux" then
78 detected.unix = true 78 detected.unix = true
79 detected.linux = true 79 detected.linux = true
80elseif system == "SunOS" then
81 detected.unix = true
82 detected.solaris = true
80elseif system and system:match("^CYGWIN") then 83elseif system and system:match("^CYGWIN") then
81 detected.unix = true 84 detected.unix = true
82 detected.cygwin = true 85 detected.cygwin = true
@@ -372,6 +375,14 @@ if detected.openbsd then
372 defaults.variables.STATFLAG = "-f '%Op'" 375 defaults.variables.STATFLAG = "-f '%Op'"
373end 376end
374 377
378if detected.solaris then
379 defaults.arch = "solaris-"..proc
380 defaults.platforms = {"unix", "solaris"}
381 defaults.variables.MAKE = "gmake"
382 defaults.variables.CC = "gcc"
383 defaults.variables.LD = "gcc"
384end
385
375-- Expose some more values detected by LuaRocks for use by rockspec authors. 386-- Expose some more values detected by LuaRocks for use by rockspec authors.
376defaults.variables.LUA = defaults.lua_interpreter 387defaults.variables.LUA = defaults.lua_interpreter
377defaults.variables.LIB_EXTENSION = defaults.lib_extension 388defaults.variables.LIB_EXTENSION = defaults.lib_extension