@ -70,20 +70,19 @@ for x in CC CXX F77 ; do
done
done
# Add the usual gcc optimazation options
# Add the usual gcc optimazation options
#
if [ "$ROCKCFG_OPTSIZE" = 1 ] ; then
var_insert GCC_WRAPPER_REMOVE " " "-O -O[0-9] -m*"
var_insert GCC_WRAPPER_INSERT " " "-Os -pipe"
else
var_insert GCC_WRAPPER_REMOVE " " "-O -O[01s] -m*"
var_insert GCC_WRAPPER_INSERT " " "-O2 -pipe"
fi
# Strip or add debug information
# Strip or add debug information
#
#
if [ "$ROCKCFG_STRIP" != 0 ] ; then
if [ "$ROCKCFG_OPT" = 1 ] ; then
var_append GCC_WRAPPER_APPEND " " "-s"
var_append GCC_WRAPPER_APPEND " " "-s"
var_insert GCC_WRAPPER_REMOVE " " "-g*"
var_insert GCC_WRAPPER_REMOVE " " "-g*"
var_insert GCC_WRAPPER_REMOVE " " "-O -O[0-9s] -m*"
if [ "$ROCKCFG_OPTSIZE" = 1 ] ; then
var_insert GCC_WRAPPER_INSERT " " "-Os -pipe"
else
var_insert GCC_WRAPPER_INSERT " " "-O2 -pipe"
fi
else
else
if [[ $pkg != glibc* ]] ; then
if [[ $pkg != glibc* ]] ; then
var_append GCC_WRAPPER_APPEND " " "-ggdb"
var_append GCC_WRAPPER_APPEND " " "-ggdb"
@ -91,7 +90,7 @@ else
fi
fi
fi
fi
# Compile with no exceptions or rtti; gcc itself must support both
# Compile with no exceptions or rtti, gcc itself must support both
#
#
if [ "$ROCKCFG_LIMITCXX" = 1 ] && [[ $pkg != gcc* ]] ; then
if [ "$ROCKCFG_LIMITCXX" = 1 ] && [[ $pkg != gcc* ]] ; then
var_append CXX_WRAPPER_APPEND " " "-fno-exceptions -fno-rtti"
var_append CXX_WRAPPER_APPEND " " "-fno-exceptions -fno-rtti"
@ -103,7 +102,7 @@ fi
var_insert GCC3_WRAPPER_REMOVE " " "-I/usr/include"
var_insert GCC3_WRAPPER_REMOVE " " "-I/usr/include"
var_insert GCC3_WRAPPER_REMOVE " " "-I/usr/local/include"
var_insert GCC3_WRAPPER_REMOVE " " "-I/usr/local/include"
# Add the architecture gcc optimaz ation options
# Add the architecture gcc optimis ation options
#
#
if [ -f architecture/$arch/gcc-options ] ; then
if [ -f architecture/$arch/gcc-options ] ; then
. architecture/$arch/gcc-options
. architecture/$arch/gcc-options