Enable flto and generic tuning optimisations

This commit is contained in:
Danny Robson 2012-05-15 16:07:03 +10:00
parent b670c76995
commit c6a3831840

View File

@ -137,7 +137,8 @@ if test "x$ac_cv_debugging" = "xyes"; then
AC_DEFINE([_GLIBCXX_DEBUG], [], [Description])
else
COMMON_CFLAGS="$COMMON_CFLAGS -O2"
COMMON_CFLAGS="$COMMON_CFLAGS -O2 -flto"
COMMON_LDFLAGS="$COMMON_LDFLAGS -flto"
fi
case $host_os in
@ -157,11 +158,11 @@ esac
case $host_cpu in
x86_64)
OPTIMISATION_FLAGS="$OPTIMISATION_FLAGS -mtune=core2"
OPTIMISATION_FLAGS="$OPTIMISATION_FLAGS -mtune=generic"
;;
i686)
OPTIMISATION_FLAGS="$OPTIMISATION_FLAGS -march=prescott -mfpmath=sse"
OPTIMISATION_FLAGS="$OPTIMISATION_FLAGS -march=prescott -mtune=generic -mfpmath=sse"
;;
*)