--- config/get_cc
+++ config/get_cc
@@ -93,7 +93,7 @@ if test -n "$__gnuc__"; then
cmd="$CC $CFLAGS $extraflag -fno-strict-aliasing -o $exe gnu.c"
. log_cmd
if test -s $exe; then
- OPTFLAGS="$OPTFLAGS -fno-strict-aliasing"
+ OPTFLAGS="@OPTFLAGS@ -fno-strict-aliasing"
fi
. cleanup_exe
KERNELCFLAGS=-funroll-loops
@@ -116,12 +116,6 @@ if test -n "$__gnuc__"; then
# omit-frame-pointer incompatible with -pg
PRFFLAGS="-pg $OPTFLAGS"
GCOVFLAGS="-fprofile-arcs -ftest-coverage"
- case "$optimization" in
- full) case "$osname" in
- mingw) ;;
- *) OPTFLAGS="$OPTFLAGS -fomit-frame-pointer";;
- esac;;
- esac
else
DBGFLAGS=${DBGFLAGS:-'-g'}
PRFFLAGS='-pg'