From 14d8ef9add17b002ee9583aca9686184c3a521b2 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 29 Dec 2010 20:20:41 +0000 Subject: (svn r21661) -Codechange: use -fwhole-program when linking in LTO mode so compiler can do more optimisations --- config.lib | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-70-g09d2