File tree Expand file tree Collapse file tree 24 files changed +22
-53
lines changed Expand file tree Collapse file tree 24 files changed +22
-53
lines changed Original file line number Diff line number Diff line change @@ -2393,6 +2393,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2393
if test "$ac_env_CFLAGS_set" = set; then
2394
2394
CFLAGS=$ac_env_CFLAGS_value
2395
2395
fi
2396
+ # configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
2397
+ if test x"$CFLAGS" = x""; then
2398
+ CFLAGS="-O"
2399
+ fi
2396
2400
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2397
2401
CFLAGS="$CFLAGS -g"
2398
2402
fi
Original file line number Diff line number Diff line change 1
1
dnl Process this file with autoconf to produce a configure script.
2
- dnl $Header: /cvsroot/pgsql/configure.in,v 1.293 2003/10/03 03:08:14 pgsql Exp $
2
+ dnl $Header: /cvsroot/pgsql/configure.in,v 1.294 2003/10/09 03:20:33 momjian Exp $
3
3
dnl
4
4
dnl Developers, please strive to achieve this order:
5
5
dnl
@@ -238,6 +238,10 @@ AC_PROG_CC([$pgac_cc_list])
238
238
if test "$ac_env_CFLAGS_set" = set; then
239
239
CFLAGS=$ac_env_CFLAGS_value
240
240
fi
241
+ # configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
242
+ if test x"$CFLAGS" = x""; then
243
+ CFLAGS="-O"
244
+ fi
241
245
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
242
246
CFLAGS="$CFLAGS -g"
243
247
fi
Original file line number Diff line number Diff line change 1
- CFLAGS='-O2'
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ case $host_cpu in
5
5
esac
6
6
7
7
case $host_os in
8
- bsdi2.0 | bsdi2.1 | bsdi3*)
9
- CC=gcc2
10
- ;;
8
+ bsdi2.0 | bsdi2.1 | bsdi3*) CC=gcc2;;
11
9
esac
12
10
13
11
THREAD_SUPPORT=yes
Original file line number Diff line number Diff line change 1
- CFLAGS='-O2'
2
1
SRCH_LIB='/usr/local/lib'
Original file line number Diff line number Diff line change 1
- CFLAGS=
Original file line number Diff line number Diff line change 1
- CFLAGS='-pipe'
2
-
3
1
case $host_cpu in
4
- alpha*) CFLAGS="$CFLAGS -O" ;;
2
+ alpha*) CFLAGS="-O";;
5
3
esac
6
4
7
5
THREAD_SUPPORT=yes
8
6
NEED_REENTRANT_FUNCS=yes
9
7
THREAD_CPPFLAGS="-D_THREAD_SAFE"
10
8
case $host_os in
11
- freebsd2*|freebsd3*|freebsd4*)
12
- THREAD_LIBS="-pthread"
13
- ;;
14
- *)
15
- THREAD_LIBS="-lc_r"
16
- ;;
9
+ freebsd2*|freebsd3*|freebsd4*) THREAD_LIBS="-pthread";;
10
+ *) THREAD_LIBS="-lc_r";;
17
11
esac
Original file line number Diff line number Diff line change 1
- if test "$GCC" = yes ; then
2
- CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
3
- CFLAGS="-O2"
4
- else
1
+ CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
2
+
3
+ if test "$GCC" != yes ; then
5
4
CC="$CC -Ae"
6
- CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
7
5
CFLAGS="+O2"
8
6
fi
Original file line number Diff line number Diff line change 1
- CFLAGS=
Original file line number Diff line number Diff line change 1
- CFLAGS=-O2
2
1
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
3
2
CPPFLAGS="-D_GNU_SOURCE"
4
3
5
4
THREAD_SUPPORT=yes
6
5
NEED_REENTRANT_FUNCS=yes # Debian kernel 2.2 2003-09-27
7
6
THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
8
7
THREAD_LIBS="-lpthread"
9
-
You can’t perform that action at this time.
0 commit comments