diff options
author | Bruce Momjian | 2003-10-14 00:48:09 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-10-14 00:48:09 +0000 |
commit | fca71f44066327864cf717beee598df224523b10 (patch) | |
tree | d45e30a1f4aeb81a90083665d0a6c8b82a7e246c /configure | |
parent | d18ba3f452f64af521f4a433a9cef51cb308c69d (diff) |
Add compile -O flag only for non-debug mode, per Tom
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure b/configure index 0ee499a304d..f376dc92ef5 100755 --- a/configure +++ b/configure @@ -2393,12 +2393,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$ac_env_CFLAGS_set" = set; then CFLAGS=$ac_env_CFLAGS_value 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 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 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5 echo "$as_me: using CFLAGS=$CFLAGS" >&6;} |