mirror of https://gitlab.com/ita1024/waf.git
c_config: -flto and -fno-lto need to be passed also when linking
This commit is contained in:
parent
c98e8b9b3d
commit
e3227a61e9
|
@ -150,7 +150,7 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
|
|||
elif x.startswith('-std='):
|
||||
prefix = 'CXXFLAGS' if '++' in x else 'CFLAGS'
|
||||
app(prefix, x)
|
||||
elif x.startswith('+') or x in ('-pthread', '-fPIC', '-fpic', '-fPIE', '-fpie'):
|
||||
elif x.startswith('+') or x in ('-pthread', '-fPIC', '-fpic', '-fPIE', '-fpie', '-flto', '-fno-lto'):
|
||||
app('CFLAGS', x)
|
||||
app('CXXFLAGS', x)
|
||||
app('LINKFLAGS', x)
|
||||
|
|
Loading…
Reference in New Issue