Handle the -Xlinker case in parse_flags

This commit is contained in:
Thomas Nagy 2014-08-31 21:03:03 +02:00
parent 6ffde12338
commit 69bb9f9209
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
app('CXXFLAGS_' + uselib, [x])
elif x.startswith('-bundle'):
app('LINKFLAGS_' + uselib, [x])
elif x.startswith('-undefined'):
elif x.startswith('-undefined') or x.startswith('-Xlinker'):
arg = lst.pop(0)
app('LINKFLAGS_' + uselib, [x, arg])
elif x.startswith('-arch') or x.startswith('-isysroot'):