mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 21:36:52 +02:00
68d95f12e7
on AIX with a non-gcc compiler. The previous coding would do this only if CC was exactly "xlc"; which is a bad idea, as demonstrated by trouble report from Mihai Criveti.
19 lines
509 B
Plaintext
19 lines
509 B
Plaintext
# Set appropriate default compiler options if using xlc
|
|
# Note: configure will add -qnoansialias if the compiler accepts it,
|
|
# even if user specifies a non-default CFLAGS setting.
|
|
if test "$GCC" != yes ; then
|
|
case $host_os in
|
|
aix3.2.5 | aix4.1*)
|
|
CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
|
|
;;
|
|
*)
|
|
CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg -qlonglong"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
# Native memset() is faster, tested on:
|
|
# AIX 5.1 and 5.2, XLC 6.0 (IBM's cc)
|
|
# AIX 5.3 ML3, gcc 4.0.1
|
|
MEMSET_LOOP_LIMIT=0
|