Don't munge arguments when configure is run by make

Fixes Homebrew/homebrew-versions#364.
This commit is contained in:
Jack Nagel 2014-02-28 20:37:33 -06:00
parent 000e9eecba
commit 02270c5edb

View File

@ -73,10 +73,10 @@ class Cmd
end end
end end
def args def args
args = if not cccfg? 'O' or tool == 'ld' if !cccfg?("O") || tool == "ld" || configure?
@args.dup args = @args.dup
else else
refurbished_args args = refurbished_args
end end
if tool != 'ld' if tool != 'ld'
args << "--sysroot=#{sdkroot}" args << "--sysroot=#{sdkroot}"