From f0f62f2e298a1eaa2e6d09ddb18a33c985e3bfeb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 27 Oct 2014 23:59:47 -0500 Subject: Always set sysroot for Xcode-only systems Fixes #33431. --- Library/ENV/4.3/cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/ENV') diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 26468cdfa..42771a4d0 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -33,7 +33,7 @@ class Cmd @args = args.freeze @brewfix = ENV['HOMEBREW_PREFIX'] @brewtmp = ENV['HOMEBREW_TEMP'] - @sysroot = ENV['HOMEBREW_SYSROOT'] + @sysroot = ENV['HOMEBREW_SDKROOT'] end def mode @@ -93,7 +93,7 @@ class Cmd if tool == "ld" args << "-syslibroot" << sysroot else - args << "--sysroot=#{sysroot}" + args << "-isysroot" << sysroot << "--sysroot=#{sysroot}" end end -- cgit v1.2.3