diff options
author | Bruce Momjian | 2003-10-09 03:20:34 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-10-09 03:20:34 +0000 |
commit | 0e22cb1232f4474f9b461661b621603312f37d3d (patch) | |
tree | abd5f46c27f3bbde748119ed6d135a29c7b3224a /configure | |
parent | c1a0d72da6f7b6a6d84d24059a1c2af40aec7ee3 (diff) |
This centralizes the optimization defaults into configure.in, rather
than having CFLAGS= in the template files.
It uses -O2 for gcc (generated by autoconf), and -O for non-gcc, unless
the template overrides it.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure index c4bb3df6018..0ee499a304d 100755 --- a/configure +++ b/configure @@ -2393,6 +2393,10 @@ 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" fi |