diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 93f30ec4f4..e89f176f07 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -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}"