Re: PG vs macOS Mojave
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jakob Egger <jakob@eggerapps.at>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2018-10-16T14:02:03Z
Lists: pgsql-hackers
Jakob Egger <jakob@eggerapps.at> writes: > Am 25. Sep. 2018 um 06:49 schrieb Tom Lane <tgl@sss.pgh.pa.us>: >> It's a bit scary to be adding -isysroot globally. > This breaks building extensions with a different SDK than the server itself. Hm, under what circumstances would that be safe or a good idea? The concerns that strike my mind are mainly around the hazard that configure's choices could be inappropriate for a build with a different SDK. Given that, though, wiring -isysroot into the configure output doesn't seem all that insane. It's possible that we could arrange things so that the generated Makefile.global looks like PG_SYSROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk CPPFLAGS = -isysroot $(PG_SYSROOT) instead of CPPFLAGS = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk thus making it a bit simpler to override that path at build time. But I'm not sure that that really moves the goalposts very far for you in terms of ease-of-use, and anyway it might just be greasing the skids to a non-working extension. regards, tom lane
Commits
-
Yet further rethinking of build changes for macOS Mojave.
- df1d749a7bda 11.1 landed
- 94ea1cf73183 9.5.15 landed
- 401202b7988c 9.6.11 landed
- 229a5c8ade48 10.6 landed
- 1b5e8b408eb9 9.4.20 landed
- 1aad3a724a40 9.3.25 landed
- 1440c461f7ea 12.0 landed
-
Still further rethinking of build changes for macOS Mojave.
- e74dd00f53cd 12.0 landed
- d1e869d1ef1c 11.1 landed
- 34f9944c207f 10.6 landed
- 1b92ca9e2c22 9.6.11 landed
- 0749acca50d3 9.4.20 landed
- 021b355cd166 9.5.15 landed
- 015fd381fe4e 9.3.25 landed
-
Back off using -isysroot on Darwin.
- ee6c08b01b9b 10.6 landed
- d0ab588cc836 9.5.15 landed
- 68fc227dd073 12.0 landed
- 5777a9ff8f21 9.6.11 landed
- 486e6f8d9c78 9.4.20 landed
- 1a69f738d25f 11.1 landed
- 19ac2cb2ae51 9.3.25 landed
-
Make some fixes to allow building Postgres on macOS 10.14 ("Mojave").
- 5e22171310f8 12.0 cited