postgresql/src/template
Tom Lane 1440c461f7 Yet further rethinking of build changes for macOS Mojave.
The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

Discussion: https://postgr.es/m/20840.1537850987@sss.pgh.pa.us
2018-11-02 18:54:00 -04:00
..
aix Force "restrict" not to be used when compiling with xlc. 2017-10-13 12:15:06 -07:00
cygwin Have configuration templates augment, not replace, LDFLAGS. 2014-06-11 19:50:57 -04:00
darwin Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
freebsd Use unnamed POSIX semaphores, if available, on Linux and FreeBSD. 2016-10-09 18:03:45 -04:00
hpux Remove duplicate specification of -Ae for HP-UX C compiler. 2015-01-13 22:52:11 -05:00
linux Use ppoll(2), if available, to wait for input in pgbench. 2018-09-24 14:40:58 -04:00
netbsd
openbsd
solaris
win32 Have configuration templates augment, not replace, LDFLAGS. 2014-06-11 19:50:57 -04:00