1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Fix CFLAGS selection to actually work. Add test to detect whether gcc's

option -fno-strict-aliasing is available.
This commit is contained in:
Peter Eisentraut
2003-10-25 15:32:11 +00:00
parent 6db0a6b035
commit 378f59904a
12 changed files with 144 additions and 53 deletions

View File

@ -1,7 +1,7 @@
if test "$GCC" != yes ; then
case $host_os in
aix3.2.5 | aix4.1*) ;;
*) CFLAGS="$CFLAGS -O2 -qlonglong";;
*) CFLAGS="-O2 -qlonglong";;
esac
CFLAGS="$CFLAGS -qmaxmem=16384 -qsrcmsg"
CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
fi

View File

@ -1,7 +1,3 @@
case $host_cpu in
i?86) CFLAGS="$CFLAGS -m486";;
esac
case $host_os in
bsdi2.0 | bsdi2.1 | bsdi3*) CC=gcc2;;
esac

View File

@ -1,5 +1,5 @@
case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O";; # alpha has problems with -O2
alpha*) CFLAGS="-O";; # alpha has problems with -O2
esac
THREAD_SUPPORT=yes

View File

@ -2,5 +2,5 @@ CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED"
if test "$GCC" != yes ; then
CC="$CC -Ae"
CFLAGS="$CFLAGS +O2"
CFLAGS="+O2"
fi

View File

@ -1,6 +1,6 @@
if test "$GCC" != yes ; then
CC="$CC -std"
CFLAGS="$CFLAGS -O4 -Olimit 2000"
CFLAGS="-O4 -Olimit 2000"
fi
THREAD_SUPPORT=yes

View File

@ -1,2 +1 @@
CFLAGS="$CFLAGS -I/usr/local/include"
LIBS="-lunix"

View File

@ -1,9 +1,8 @@
if test "$GCC" != yes ; then
CC="$CC -Xa" # relaxed ISO C mode
CFLAGS="$CFLAGS -O -v" # -v is like gcc -Wall
CFLAGS="-O -v" # -v is like gcc -Wall
fi
THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
THREAD_LIBS="-pthread"

View File

@ -1,2 +1,2 @@
CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
CFLAGS="-v -O -K i486,host,inline,loop_unroll -Dsvr4"
LIBS="-lc89"

View File

@ -4,7 +4,7 @@ else
# the -Kno_host is temporary for a bug in the compiler. See -hackers
# discussion on 7-8/Aug/2003.
# when the 7.1.3UP3 or later compiler is out, we can do a version check.
CFLAGS="$CFLAGS -O -Kinline,no_host"
CFLAGS="-O -Kinline,no_host"
THREAD_CPPFLAGS="-K pthread"
fi