mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 14:01:27 +02:00
44273ce4f6
Move the platform-dependent logic that sets CFLAGS_SL from src/makefiles/Makefile.foo to src/template/foo, so that the value is determined at configure time and thus is available while running configure's tests. On a couple of platforms this might save a few microseconds of build time by eliminating a test that make otherwise has to do over and over. Otherwise it's pretty much a wash for build purposes; in particular, this makes no difference to anyone who might be overriding CFLAGS_SL via a make option. This patch in itself does nothing with the value and thus should not change any behavior, though you'll probably have to re-run configure to get a correctly updated Makefile.global. We'll use the new configure variable in a follow-on patch. Per gripe from Kyotaro Horiguchi. Back-patch to all supported branches, because the follow-on patch is a portability bug fix. Discussion: https://postgr.es/m/20191010.144533.263180400.horikyota.ntt@gmail.com
29 lines
831 B
Plaintext
29 lines
831 B
Plaintext
# src/template/aix
|
|
|
|
# Set default options if using xlc. This formerly included -qsrcmsg, but that
|
|
# option elicits internal compiler errors from xlc v16.1.0. 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"
|
|
;;
|
|
*)
|
|
CFLAGS="-O2 -qmaxmem=16384"
|
|
;;
|
|
esac
|
|
|
|
# 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
|
|
fi
|
|
|
|
# Extra CFLAGS for code that will go into a shared library
|
|
CFLAGS_SL=""
|
|
|
|
# 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
|