Commit fca71f44 authored by Bruce Momjian's avatar Bruce Momjian

Add compile -O flag only for non-debug mode, per Tom

parent d18ba3f4
...@@ -2393,12 +2393,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -2393,12 +2393,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "$ac_env_CFLAGS_set" = set; then if test "$ac_env_CFLAGS_set" = set; then
CFLAGS=$ac_env_CFLAGS_value CFLAGS=$ac_env_CFLAGS_value
fi fi
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
if test x"$CFLAGS" = x""; then
CFLAGS="-O"
fi
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
CFLAGS="$CFLAGS -g" CFLAGS="$CFLAGS -g"
else
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
if test x"$CFLAGS" = x""; then
CFLAGS="-O"
fi
fi fi
{ echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
echo "$as_me: using CFLAGS=$CFLAGS" >&6;} echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
......
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.294 2003/10/09 03:20:33 momjian Exp $ dnl $Header: /cvsroot/pgsql/configure.in,v 1.295 2003/10/14 00:48:09 momjian Exp $
dnl dnl
dnl Developers, please strive to achieve this order: dnl Developers, please strive to achieve this order:
dnl dnl
...@@ -238,12 +238,13 @@ AC_PROG_CC([$pgac_cc_list]) ...@@ -238,12 +238,13 @@ AC_PROG_CC([$pgac_cc_list])
if test "$ac_env_CFLAGS_set" = set; then if test "$ac_env_CFLAGS_set" = set; then
CFLAGS=$ac_env_CFLAGS_value CFLAGS=$ac_env_CFLAGS_value
fi fi
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
if test x"$CFLAGS" = x""; then
CFLAGS="-O"
fi
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
CFLAGS="$CFLAGS -g" CFLAGS="$CFLAGS -g"
else
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
if test x"$CFLAGS" = x""; then
CFLAGS="-O"
fi
fi fi
AC_MSG_NOTICE([using CFLAGS=$CFLAGS]) AC_MSG_NOTICE([using CFLAGS=$CFLAGS])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment