]> granicus.if.org Git - yasm/commitdiff
Optimize if dev is not enabled. Don't use DEVFLAGS for non-gcc compiler.
authorPeter Johnson <peter@tortall.net>
Sun, 2 Dec 2001 04:37:55 +0000 (04:37 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 2 Dec 2001 04:37:55 +0000 (04:37 -0000)
svn path=/trunk/yasm/; revision=371

configure.ac
configure.in

index 38e2b1a908e9dede51b419fecfc20943b9102177..d265bc654683223c47a6f624e1eb764d39c908d9 100644 (file)
@@ -143,6 +143,8 @@ AC_SUBST(CHECK_CFLAGS)
 
 if ${dev}; then
        DEVFLAGS=" -g"
+else
+       DEVFLAGS=" -O"
 fi
 
 if ${morewarn}; then
@@ -175,7 +177,7 @@ fi
 if test "$GCC" = yes; then
        ANSI_CFLAGS="-ansi -pedantic -Wall $MOREWARNFLAGS $WARNERRORFLAGS $DEVFLAGS $PROFILINGFLAGS $DMALLOCFLAGS"
 else
-       ANSI_CFLAGS="$DEVFLAGS"
+       ANSI_CFLAGS=""
 fi
 AC_SUBST(ANSI_CFLAGS)
 
index 38e2b1a908e9dede51b419fecfc20943b9102177..d265bc654683223c47a6f624e1eb764d39c908d9 100644 (file)
@@ -143,6 +143,8 @@ AC_SUBST(CHECK_CFLAGS)
 
 if ${dev}; then
        DEVFLAGS=" -g"
+else
+       DEVFLAGS=" -O"
 fi
 
 if ${morewarn}; then
@@ -175,7 +177,7 @@ fi
 if test "$GCC" = yes; then
        ANSI_CFLAGS="-ansi -pedantic -Wall $MOREWARNFLAGS $WARNERRORFLAGS $DEVFLAGS $PROFILINGFLAGS $DMALLOCFLAGS"
 else
-       ANSI_CFLAGS="$DEVFLAGS"
+       ANSI_CFLAGS=""
 fi
 AC_SUBST(ANSI_CFLAGS)