Don't munge arguments when configure is run by make

Fixes Homebrew/homebrew-versions#364.
This commit is contained in:
Jack Nagel committed 2014-02-28 20:41:44 -06:00
1 parent 338d60bbef
commit b159fbce0b
1 file changed
+3 -3
+3 -3
View File
@@ -73,10 +73,10 @@ class Cmd
end
end
def args
args = if not cccfg? 'O' or tool == 'ld'
@args.dup
if !cccfg?("O") || tool == "ld" || configure?
args = @args.dup
else
refurbished_args
args = refurbished_args
end
if tool != 'ld'
args << "--sysroot=#{sdkroot}"