Commit f7bae20d authored by Bruce Momjian's avatar Bruce Momjian

Don't bother adding to cflags/cppflags, just set them because configure

handles that, and make solaris debug use no optimization.
parent 22c21bab
if test "$GCC" != yes ; then if test "$GCC" != yes ; then
case $host_os in case $host_os in
aix3.2.5 | aix4.1*) aix3.2.5 | aix4.1*)
CFLAGS="$CFLAGS -O -qmaxmem=16384 -qsrcmsg" CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
;; ;;
*) *)
CFLAGS="$CFLAGS -O2 -qmaxmem=16384 -qsrcmsg -qlonglong" CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
;; ;;
esac esac
fi fi
case $host_cpu in case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2 alpha*) CFLAGS="-O";; # alpha has problems with -O2
esac esac
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
if test "$GCC" != yes ; then if test "$GCC" != yes ; then
CC="$CC -Ae" CC="$CC -Ae"
CFLAGS="$CFLAGS +O2" CFLAGS="+O2"
fi fi
# Pick right test-and-set (TAS) code. We need out-of-line assembler # Pick right test-and-set (TAS) code. We need out-of-line assembler
......
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" CPPFLAGS="-D_GNU_SOURCE"
if test "$GCC" != yes ; then if test "$GCC" != yes ; then
CC="$CC -std" CC="$CC -std"
CFLAGS="$CFLAGS -O -ieee" CFLAGS="-O -ieee"
fi fi
if test "$GCC" != yes ; then if test "$GCC" != yes ; then
CC="$CC -Xa" # relaxed ISO C mode CC="$CC -Xa" # relaxed ISO C mode
CFLAGS="$CFLAGS -O -v" # -v is like gcc -Wall CFLAGS="-v" # -v is like gcc -Wall
if test "$enable_debug" != yes; then
CFLAGS="$CFLAGS -O" # any optimization breaks debug
fi
fi fi
# Pick right test-and-set (TAS) code. We need out-of-line assembler # Pick right test-and-set (TAS) code. We need out-of-line assembler
......
CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4" CFLAGS="-v -O -K i486,host,inline,loop_unroll -Dsvr4"
LIBS="-lc89" LIBS="-lc89"
...@@ -13,9 +13,9 @@ void g(void){ ...@@ -13,9 +13,9 @@ void g(void){
__EOF__ __EOF__
if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
CFLAGS="$CFLAGS -O -Kinline" CFLAGS="-O -Kinline"
else else
CFLAGS="$CFLAGS -O -Kinline,no_host" CFLAGS="-O -Kinline,no_host"
fi fi
rm -f conftest.* rm -f conftest.*
......
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