From aaf92d629ce4bdb903bd5dde14e94f20abf5825a Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sat, 3 Mar 2012 14:05:43 +1030 Subject: Add support for the "solaris" platform --- src/luarocks/cfg.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 elseif system == "Linux" then detected.unix = true detected.linux = true +elseif system == "SunOS" then + detected.unix = true + detected.solaris = true elseif system and system:match("^CYGWIN") then detected.unix = true detected.cygwin = true @@ -371,6 +374,14 @@ if detected.openbsd then defaults.variables.STATFLAG = "-f '%Op'" end +if detected.solaris then + defaults.arch = "solaris-"..proc + defaults.platforms = {"unix", "solaris"} + defaults.variables.MAKE = "gmake" + defaults.variables.CC = "gcc" + defaults.variables.LD = "gcc" +end + -- Expose some more values detected by LuaRocks for use by rockspec authors. defaults.variables.LUA = defaults.lua_interpreter defaults.variables.LIB_EXTENSION = defaults.lib_extension -- cgit v1.2.3-55-g6feb