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