Index: configure.in =================================================================== RCS file: /cvsroot/python/python/dist/src/configure.in,v retrieving revision 1.427.4.6 diff -c -r1.427.4.6 configure.in *** configure.in 25 Sep 2003 15:21:00 -0000 1.427.4.6 --- configure.in 3 Oct 2003 14:18:33 -0000 *************** *** 204,209 **** --- 204,211 ---- fi AC_MSG_RESULT($EXTRAPLATDIR) + BASECFLAGS=$CFLAGS + # checks for alternative programs # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just *************** *** 236,247 **** --- 238,251 ---- without_gcc=yes BASECFLAGS="$BASECFLAGS -export pragma" OPT="$OPT -O" + CFLAGS="$BASECFLAGS $OPT" LDFLAGS="$LDFLAGS -nodup" ;; x86) CC=gcc without_gcc=no OPT="$OPT -O" + CFLAGS="$BASECFLAGS $OPT" ;; *) AC_MSG_ERROR([Unknown BeOS platform "$BE_HOST_CPU"]) *************** *** 537,542 **** --- 541,547 ---- dguxR4) LDLIBRARY='libpython$(VERSION).so' BASECFLAGS="$BASECFLAGS -pic" + CFLAGS="$BASECFLAGS $OPT" ;; esac fi *************** *** 638,643 **** --- 643,650 ---- fi + CFLAGS="$BASECFLAGS $OPT" + AC_SUBST(BASECFLAGS) # tweak BASECFLAGS based on compiler and platform case $GCC in *************** *** 695,700 **** --- 702,709 ---- BASECFLAGS="$BASECFLAGS $ac_arch_flags" fi + CFLAGS="$BASECFLAGS $OPT" + AC_MSG_CHECKING(whether $CC accepts -OPT:Olimit=0) AC_CACHE_VAL(ac_cv_opt_olimit_ok, [ac_save_cc="$CC" *************** *** 731,736 **** --- 740,746 ---- BASECFLAGS="$BASECFLAGS -Olimit 1500" fi fi + CFLAGS="$BASECFLAGS $OPT" # On some compilers, pthreads are available without further options # (e.g. MacOS X). On some of these systems, the compiler will not *************** *** 1164,1169 **** --- 1174,1180 ---- if test "$enable_framework" then BASECFLAGS="$BASECFLAGS -fno-common -dynamic" + CFLAGS="$BASECFLAGS $OPT" # -F. is needed to allow linking to the framework while # in the build location. LDFLAGS="$LDFLAGS -Wl,-F." *************** *** 1825,1830 **** --- 1836,1842 ---- ipv6lib=inet6 ipv6libdir=/usr/inet6/lib BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" + CFLAGS="$BASECFLAGS $OPT" fi ;; solaris) *************** *** 1855,1860 **** --- 1867,1873 ---- ipv6lib=v6; ipv6libdir=/usr/local/v6/lib; BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"]) + CFLAGS="$BASECFLAGS $OPT" ;; zeta) AC_EGREP_CPP(yes, [