Commit 7185455c authored by Bruce Momjian's avatar Bruce Momjian

Make template CFLAGS handling consistent.

parent 1dad866b
if test "$GCC" = yes ; then if test "$GCC" = yes ; then
CFLAGS='-O2 -pipe' CFLAGS="$CFLAGS -pipe"
else # not GCC else
CFLAGS='-O2 -qmaxmem=16384 -qsrcmsg -qlonglong'
case $host_os in case $host_os in
aix3.2.5 | aix4.1*) aix3.2.5 | aix4.1*) ;;
CFLAGS='-qmaxmem=16384 -qsrcmsg' ;; *) CFLAGS="$CFLAGS -O2 -qlonglong";;
esac esac
fi # not GCC CFLAGS="$CFLAGS -qmaxmem=16384 -qsrcmsg"
fi
SRCH_LIB='/usr/local/lib' SRCH_LIB="/usr/local/lib"
CFLAGS="$CFLAGS -pipe" CFLAGS="$CFLAGS -pipe"
case $host_cpu in case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
esac esac
THREAD_SUPPORT=yes THREAD_SUPPORT=yes
......
...@@ -2,5 +2,5 @@ CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED" ...@@ -2,5 +2,5 @@ CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
if test "$GCC" != yes ; then if test "$GCC" != yes ; then
CC="$CC -Ae" CC="$CC -Ae"
CFLAGS="+O2" CFLAGS="$CFLAGS +O2"
fi fi
if test "$GCC" != yes ; then if test "$GCC" != yes ; then
CC="$CC -std" CC="$CC -std"
CFLAGS='-O4 -Olimit 2000' CFLAGS="$CFLAGS -O4 -Olimit 2000"
fi fi
THREAD_SUPPORT=yes THREAD_SUPPORT=yes
......
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="-O -v" # -v is like gcc -Wall CFLAGS="$CFLAGS -O -v" # -v is like gcc -Wall
fi fi
THREAD_SUPPORT=yes THREAD_SUPPORT=yes
......
CFLAGS='-v -O -K i486,host,inline,loop_unroll -Dsvr4' CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
LIBS="-lc89" LIBS="-lc89"
...@@ -4,7 +4,7 @@ else ...@@ -4,7 +4,7 @@ else
# the -Kno_host is temporary for a bug in the compiler. See -hackers # the -Kno_host is temporary for a bug in the compiler. See -hackers
# discussion on 7-8/Aug/2003. # discussion on 7-8/Aug/2003.
# when the 7.1.3UP3 or later compiler is out, we can do a version check. # when the 7.1.3UP3 or later compiler is out, we can do a version check.
CFLAGS='-O -Kinline,no_host' CFLAGS="$CFLAGS -O -Kinline,no_host"
THREAD_CPPFLAGS="-K pthread" THREAD_CPPFLAGS="-K pthread"
fi fi
......
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