2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-30 05:52:24 +01:00

Add -pie for parse_flags #1936

This commit is contained in:
Thomas Nagy 2017-04-01 09:29:00 +02:00
parent 058807ed9a
commit a61bae1fca
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -164,7 +164,7 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
static = True
elif x == '-Wl,-Bdynamic' or x == '-Bdynamic':
static = False
elif x.startswith('-Wl') or x == '-rdynamic':
elif x.startswith('-Wl') or x in ('-rdynamic', '-pie'):
app('LINKFLAGS', x)
elif x.startswith(('-m', '-f', '-dynamic', '-O', '-g')):
# Adding the -W option breaks python builds on Openindiana
@ -182,6 +182,8 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
app('LINKFLAGS', tmp)
elif x.endswith(('.a', '.so', '.dylib', '.lib')):
appu('LINKFLAGS', x) # not cool, #762
else:
self.to_log('Unhandled flag %r' % x)
@conf
def validate_cfg(self, kw):