summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-12-29 20:20:41 +0000
committersmatz <smatz@openttd.org>2010-12-29 20:20:41 +0000
commit14d8ef9add17b002ee9583aca9686184c3a521b2 (patch)
treeb8c68405b9a1cf53031ed87193c6d737293cdbfd
parent83d7634122278bde9feabeda284286652cfb40ca (diff)
downloadopenttd-14d8ef9add17b002ee9583aca9686184c3a521b2.tar.xz
(svn r21661) -Codechange: use -fwhole-program when linking in LTO mode so compiler can do more optimisations
-rw-r--r--config.lib1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index 08021351c..ab9576f01 100644
--- a/config.lib
+++ b/config.lib
@@ -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