diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/cfg.lua | 6 |
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 |