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