mirror of https://gitlab.com/ita1024/waf.git
Add -pie for parse_flags #1936
This commit is contained in:
parent
e503375cb0
commit
bffa757bae
|
@ -199,7 +199,7 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
|
||||||
static = True
|
static = True
|
||||||
elif x == '-Wl,-Bdynamic' or x == '-Bdynamic':
|
elif x == '-Wl,-Bdynamic' or x == '-Bdynamic':
|
||||||
static = False
|
static = False
|
||||||
elif x.startswith('-Wl') or x == '-rdynamic':
|
elif x.startswith('-Wl') or x in ('-rdynamic', '-pie'):
|
||||||
app('LINKFLAGS', x)
|
app('LINKFLAGS', x)
|
||||||
elif x.startswith(('-m', '-f', '-dynamic', '-O')):
|
elif x.startswith(('-m', '-f', '-dynamic', '-O')):
|
||||||
app('CFLAGS', x)
|
app('CFLAGS', x)
|
||||||
|
@ -216,6 +216,8 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
|
||||||
app('LINKFLAGS', tmp)
|
app('LINKFLAGS', tmp)
|
||||||
elif x.endswith(('.a', '.so', '.dylib', '.lib')):
|
elif x.endswith(('.a', '.so', '.dylib', '.lib')):
|
||||||
appu('LINKFLAGS', x) # not cool, #762
|
appu('LINKFLAGS', x) # not cool, #762
|
||||||
|
else:
|
||||||
|
self.to_log('Unhandled flag %r' % x)
|
||||||
|
|
||||||
@conf
|
@conf
|
||||||
def validate_cfg(self, kw):
|
def validate_cfg(self, kw):
|
||||||
|
|
Loading…
Reference in New Issue