diff options
| -rwxr-xr-x | Library/ENV/4.3/cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 1fb6d8207..91707eea9 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -160,8 +160,9 @@ class Cmd when "-undefineddynamic_lookup" args << "-Wl,-undefined,dynamic_lookup" when /^-isysroot/, /^--sysroot/ - # We set the sysroot - enum.next + sdk = enum.next + # We set the sysroot for OS X SDKs + args << "-isysroot" << sdk unless sdk.downcase.include? "osx" when "-dylib" args << "-Wl,#{arg}" when /^-I(.+)?/ |
