mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-10 20:47:37 +08:00
In de6fd1c8 I moved the the work around from 53f73879 into the aix template. The previous location was removed in the former commit, and I thought that it would be nice to emit a warning when running configure. That didn't turn out to work because at the point the template is included we don't know whether we're compiling a 32/64 bit binary and it's possible to install compilers for both on a 64 bit kernel/OS. So go back to a less ambitious approach and define PG_FORCE_DISABLE_INLINE in port/aix.h, without emitting a warning. We could try a more fancy approach, but it doesn't seem worth it. This requires moving the check for PG_FORCE_DISABLE_INLINE in c.h to after including the system headers included from therein which isn't perfect, as it seems slightly more robust to include all system headers in a similar environment. Oh well. Discussion: 20150807132000.GC13310@awork2.anarazel.de
19 lines
498 B
Plaintext
19 lines
498 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"
|
|
;;
|
|
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
|