superenv: Filter out -isysroot

Closes Homebrew/homebrew#16576.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Samuel John 2012-12-14 19:03:12 +01:00 committed by Adam Vandenberg
parent da5a4223e8
commit 261ca7aa6a

View File

@ -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(.+)/