postgresql/src/template
Tom Lane 015fd381fe Still further rethinking of build changes for macOS Mojave.
To avoid the sorts of problems complained of by Jakob Egger, it'd be
best if configure didn't emit any references to the sysroot path at all.
In the case of PL/Tcl, we can do that just by keeping our hands off the
TCL_INCLUDE_SPEC string altogether.  In the case of PL/Perl, we need to
substitute -iwithsysroot for -I in the compile commands, which is easily
handled if we change to using a configure output variable that includes
the switch not only the directory name.  Since PL/Tcl and PL/Python
already do it like that, this seems like good consistency cleanup anyway.

Hence, this replaces the advice given to Perl-related extensions in commit
5e2217131; instead of writing "-I$(perl_archlibexp)/CORE", they should
just write "$(perl_includespec)".  (The old way continues to work, but not
on recent macOS.)

It's still the case that configure needs to be aware of the sysroot
path internally, but that's cleaner than what we had before.

As before, back-patch to all supported versions.

Discussion: https://postgr.es/m/20840.1537850987@sss.pgh.pa.us
2018-10-18 14:55:23 -04:00
..
aix AIX: Test the -qlonglong option before use. 2015-07-17 03:02:03 -04:00
cygwin Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
darwin Still further rethinking of build changes for macOS Mojave. 2018-10-18 14:55:23 -04:00
freebsd Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
hpux Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
irix Rename irix5 port to irix. 2004-05-19 21:37:43 +00:00
linux Remove _FORTIFY_SOURCE 2012-10-10 21:42:38 -04:00
netbsd Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
openbsd Remove -pipe from compiles. 2003-10-09 22:55:46 +00:00
osf Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
sco Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
solaris Move forgotten comment closer to where it matters. 2008-10-29 16:23:07 +00:00
unixware With the native compiler on Unixware, disable optimization if 2007-07-16 17:38:48 +00:00
win32 Split the LDFLAGS make variable into two parts: LDFLAGS is now used for 2010-07-05 18:54:38 +00:00