From 261ca7aa6a3f1b7ad9a00a08149665fea3a554be Mon Sep 17 00:00:00 2001 From: Samuel John Date: Fri, 14 Dec 2012 19:03:12 +0100 Subject: superenv: Filter out -isysroot Closes Homebrew/homebrew#16576. Signed-off-by: Adam Vandenberg --- Library/ENV/4.3/cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/ENV/4.3') diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 13bb08658..85f57817d 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -119,6 +119,9 @@ class Cmd args << arg if arg =~ /^-W[alp],/ when '-macosx_version_min', '-dylib_install_name' args << "-Wl,#{arg},#{whittler.next}" + when /^-isysroot/ + # We set the sysroot + whittler.next when '-dylib' args << "-Wl,#{arg}" when /^-I(.+)/ -- cgit v1.2.3