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

pull/155/head
smatz 14 years ago
parent a51c3e7ac9
commit 450f80ef74

@ -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

Loading…
Cancel
Save