diff acinclude/c.m4 @ 3378:a211710ebc37

Fixed bug #31 Set the default optimization level to -O3
author Sam Lantinga <slouken@libsdl.org>
date Sun, 11 Oct 2009 06:44:50 +0000
parents 106a409ceeef
children
line wrap: on
line diff
--- a/acinclude/c.m4	Sun Oct 11 06:42:20 2009 +0000
+++ b/acinclude/c.m4	Sun Oct 11 06:44:50 2009 +0000
@@ -626,13 +626,13 @@
   CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
-    CFLAGS="-g -O2"
+    CFLAGS="-g -O3"
   else
     CFLAGS="-g"
   fi
 else
   if test "$GCC" = yes; then
-    CFLAGS="-O2"
+    CFLAGS="-O3"
   else
     CFLAGS=
   fi
@@ -860,13 +860,13 @@
   CXXFLAGS=$ac_save_CXXFLAGS
 elif test $ac_cv_prog_cxx_g = yes; then
   if test "$GXX" = yes; then
-    CXXFLAGS="-g -O2"
+    CXXFLAGS="-g -O3"
   else
     CXXFLAGS="-g"
   fi
 else
   if test "$GXX" = yes; then
-    CXXFLAGS="-O2"
+    CXXFLAGS="-O3"
   else
     CXXFLAGS=
   fi
@@ -1030,13 +1030,13 @@
   OBJCFLAGS=$ac_save_OBJCFLAGS
 elif test $ac_cv_prog_objc_g = yes; then
   if test "$GOBJC" = yes; then
-    OBJCFLAGS="-g -O2"
+    OBJCFLAGS="-g -O3"
   else
     OBJCFLAGS="-g"
   fi
 else
   if test "$GOBJC" = yes; then
-    OBJCFLAGS="-O2"
+    OBJCFLAGS="-O3"
   else
     OBJCFLAGS=
   fi