From fd2296b828dcaad19726341e9251454163e0407c Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 30 May 2010 22:34:34 +0200 Subject: [PATCH] config/path: - enable general LTO optimazion support --- config/path | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/path b/config/path index 1cff83a07f..08faff38bb 100644 --- a/config/path +++ b/config/path @@ -118,6 +118,12 @@ else TARGET_LDFLAGS="$TARGET_LDFLAGS -s" fi +if [ "$OPTIMIZATIONS" = speed -a "$DEBUG" != yes ]; then + TARGET_CFLAGS="$TARGET_CFLAGS -flto -fwhole-program" # -fuse-linker-plugin + TARGET_CXXFLAGS="$TARGET_CXXFLAGS -flto -fwhole-program" # -fuse-linker-plugin + TARGET_LDFLAGS="$TARGET_LDFLAGS -flto -fwhole-program" # -fuse-linker-plugin +fi + HOST_AWK=gawk HOST_CC=$ROOT/$TOOLCHAIN/bin/host-gcc HOST_CXX=$ROOT/$TOOLCHAIN/bin/host-g++