aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-03-03 14:05:43 +1030
committerMark Pulford <mark@kyne.com.au>2012-03-03 14:20:29 +1030
commitaaf92d629ce4bdb903bd5dde14e94f20abf5825a (patch)
tree3b2aa42e44fff71a1dadb0b127347a42ed886afd /src
parent91e1a125a67e189c0f8f25e3b44ec945ea048c1c (diff)
downloadluarocks-aaf92d629ce4bdb903bd5dde14e94f20abf5825a.tar.gz
luarocks-aaf92d629ce4bdb903bd5dde14e94f20abf5825a.tar.bz2
luarocks-aaf92d629ce4bdb903bd5dde14e94f20abf5825a.zip
Add support for the "solaris" platform
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 9628a291..df573c82 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -76,6 +76,9 @@ elseif system == "Darwin" then
76elseif system == "Linux" then 76elseif system == "Linux" then
77 detected.unix = true 77 detected.unix = true
78 detected.linux = true 78 detected.linux = true
79elseif system == "SunOS" then
80 detected.unix = true
81 detected.solaris = true
79elseif system and system:match("^CYGWIN") then 82elseif system and system:match("^CYGWIN") then
80 detected.unix = true 83 detected.unix = true
81 detected.cygwin = true 84 detected.cygwin = true
@@ -371,6 +374,14 @@ if detected.openbsd then
371 defaults.variables.STATFLAG = "-f '%Op'" 374 defaults.variables.STATFLAG = "-f '%Op'"
372end 375end
373 376
377if detected.solaris then
378 defaults.arch = "solaris-"..proc
379 defaults.platforms = {"unix", "solaris"}
380 defaults.variables.MAKE = "gmake"
381 defaults.variables.CC = "gcc"
382 defaults.variables.LD = "gcc"
383end
384
374-- Expose some more values detected by LuaRocks for use by rockspec authors. 385-- Expose some more values detected by LuaRocks for use by rockspec authors.
375defaults.variables.LUA = defaults.lua_interpreter 386defaults.variables.LUA = defaults.lua_interpreter
376defaults.variables.LIB_EXTENSION = defaults.lib_extension 387defaults.variables.LIB_EXTENSION = defaults.lib_extension