]> granicus.if.org Git - postgresql/blob - src/template/aix
AIX: Stop adding option -qsrcmsg.
[postgresql] / src / template / aix
1 # Set default options if using xlc.  This formerly included -qsrcmsg, but that
2 # option elicits internal compiler errors from xlc v16.1.0.  Note: configure
3 # will add -qnoansialias if the compiler accepts it, even if user specifies a
4 # non-default CFLAGS setting.
5 if test "$GCC" != yes ; then
6   case $host_os in
7     aix3.2.5 | aix4.1*)
8       CFLAGS="-O -qmaxmem=16384"
9       ;;
10     *)
11       CFLAGS="-O2 -qmaxmem=16384"
12       ;;
13   esac
14
15   # Due to a compiler bug, see 20171013023536.GA492146@rfd.leadboat.com for details,
16   # force restrict not to be used when compiling with xlc.
17   FORCE_DISABLE_RESTRICT=yes
18 fi
19
20 # Native memset() is faster, tested on:
21 #       AIX 5.1 and 5.2, XLC 6.0 (IBM's cc)
22 #       AIX 5.3 ML3, gcc 4.0.1
23 MEMSET_LOOP_LIMIT=0