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
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}"