config/path:

- enable general LTO optimazion support
This commit is contained in:
Stephan Raue 2010-05-30 22:34:34 +02:00
parent 81fb1ffeae
commit fd2296b828

View File

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