(svn r21661) -Codechange: use -fwhole-program when linking in LTO mode so compiler can do more optimisations

This commit is contained in:
smatz 2010-12-29 20:20:41 +00:00
parent 83d7634122
commit 14d8ef9add

View File

@ -1296,6 +1296,7 @@ make_compiler_cflags() {
if [ -n "$has_lto" ]; then
# Use LTO only if we see LTO exists and is requested
flags="$flags -flto"
ldflags="$ldflags -fwhole-program"
features="$features lto"
fi
fi