2009-02-11 21:02:40 +01:00
|
|
|
# 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.
|
2003-10-10 00:55:46 +02:00
|
|
|
if test "$GCC" != yes ; then
|
2000-07-15 17:54:52 +02:00
|
|
|
case $host_os in
|
2003-11-01 21:45:30 +01:00
|
|
|
aix3.2.5 | aix4.1*)
|
2004-12-02 19:11:40 +01:00
|
|
|
CFLAGS="-O -qmaxmem=16384 -qsrcmsg"
|
2003-11-01 21:45:30 +01:00
|
|
|
;;
|
|
|
|
*)
|
2015-07-17 09:01:14 +02:00
|
|
|
CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg"
|
2003-11-01 21:45:30 +01:00
|
|
|
;;
|
2000-07-15 17:54:52 +02:00
|
|
|
esac
|
2017-10-13 20:54:59 +02:00
|
|
|
|
|
|
|
# Due to a compiler bug, see 20171013023536.GA492146@rfd.leadboat.com for details,
|
|
|
|
# force restrict not to be used when compiling with xlc.
|
|
|
|
FORCE_DISABLE_RESTRICT=yes
|
2003-10-09 16:40:37 +02:00
|
|
|
fi
|
2006-02-03 14:53:15 +01:00
|
|
|
|
2006-02-03 14:56:20 +01:00
|
|
|
# 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
|
2006-02-03 14:53:15 +01:00
|
|
|
MEMSET_LOOP_LIMIT=0
|