Some flags must be specified -Wl,foo

Finishes fixing qrupdate. And maybe others.
This commit is contained in:
Max Howell 2012-08-29 22:37:57 -04:00
parent fc9b18c291
commit 1a9c2917a4

View File

@ -95,6 +95,10 @@ class Cmd
'-pedantic', '-pedantic-errors'
when /^-W.*/
args << arg if arg =~ /^-Wl,/
when '-macosx_version_min', '-dylib_install_name'
args << "-Wl,#{arg},#{whittler.next}"
when '-dylib'
args << "-Wl,#{arg}"
when /^-I(.+)/
# it is okay to add a space after the -I; so let's support it
path = $1.chuzzle || whittler.next