aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-01-21 10:41:30 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-01-21 10:41:30 -0200
commit113ada0d24e148bca42cc79ca05b0cec12b1fd0e (patch)
tree8b6da907b795ea14976204db1bcd967af17cb981 /src
parent9204178818838035eac73de567fab4cb4fff71da (diff)
parentaa4e0d3cfc680789bf6c481dbafa7df49896470f (diff)
downloadluarocks-113ada0d24e148bca42cc79ca05b0cec12b1fd0e.tar.gz
luarocks-113ada0d24e148bca42cc79ca05b0cec12b1fd0e.tar.bz2
luarocks-113ada0d24e148bca42cc79ca05b0cec12b1fd0e.zip
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cfg.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 32ab1f37..25bd1553 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -448,8 +448,10 @@ if detected.macosx then
448 defaults.variables.STATFLAG = "-f '%A'" 448 defaults.variables.STATFLAG = "-f '%A'"
449 local version = io.popen("sw_vers -productVersion"):read("*l") 449 local version = io.popen("sw_vers -productVersion"):read("*l")
450 version = tonumber(version and version:match("^[^.]+%.([^.]+)")) or 3 450 version = tonumber(version and version:match("^[^.]+%.([^.]+)")) or 3
451 if version >= 5 then 451 if version >= 10 then
452 version = 5 452 version = 8
453 elseif version >= 5 then
454 version = 5
453 else 455 else
454 defaults.gcc_rpath = false 456 defaults.gcc_rpath = false
455 end 457 end