Fixed bug #31
authorSam Lantinga <slouken@libsdl.org>
Sun, 11 Oct 2009 06:44:50 +0000
changeset 3378 a211710ebc37
parent 3377 c8d350c981ff
child 3379 3dd59e993979
Fixed bug #31 Set the default optimization level to -O3
acinclude/c.m4
--- 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