Merge pull request #11519 from hpvb/fix-gcc-lto

Fix gcc lto

[ci skip]
This commit is contained in:
Rémi Verschelde
2017-09-24 13:32:00 +02:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@ -120,6 +120,9 @@ def configure(env):
if (env["use_lto"] == "yes"):
env.Append(CCFLAGS=['-flto'])
env.Append(LINKFLAGS=['-flto'])
if (env["use_llvm"] == "no"):
env['RANLIB'] = 'gcc-ranlib'
env['AR'] = 'gcc-ar'
env.Append(CCFLAGS=['-pipe'])
env.Append(LINKFLAGS=['-pipe'])