diff options
| author | Mark Pulford <mark@kyne.com.au> | 2012-03-03 14:05:43 +1030 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2012-03-03 14:20:29 +1030 |
| commit | aaf92d629ce4bdb903bd5dde14e94f20abf5825a (patch) | |
| tree | 3b2aa42e44fff71a1dadb0b127347a42ed886afd /src | |
| parent | 91e1a125a67e189c0f8f25e3b44ec945ea048c1c (diff) | |
| download | luarocks-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.lua | 11 |
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 | |||
| 76 | elseif system == "Linux" then | 76 | elseif system == "Linux" then |
| 77 | detected.unix = true | 77 | detected.unix = true |
| 78 | detected.linux = true | 78 | detected.linux = true |
| 79 | elseif system == "SunOS" then | ||
| 80 | detected.unix = true | ||
| 81 | detected.solaris = true | ||
| 79 | elseif system and system:match("^CYGWIN") then | 82 | elseif 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'" |
| 372 | end | 375 | end |
| 373 | 376 | ||
| 377 | if 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" | ||
| 383 | end | ||
| 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. |
| 375 | defaults.variables.LUA = defaults.lua_interpreter | 386 | defaults.variables.LUA = defaults.lua_interpreter |
| 376 | defaults.variables.LIB_EXTENSION = defaults.lib_extension | 387 | defaults.variables.LIB_EXTENSION = defaults.lib_extension |
