- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit5e22171
committed
Make some fixes to allow building Postgres on macOS 10.14 ("Mojave").
Apple's latest rearrangements of the system-supplied headers have brokenbuilding of PL/Perl and PL/Tcl. The only practical way to fix PL/Tcl is tostart using the "-isysroot" compiler flag to point to SDK-supplied headers,as Apple expects. We must also start distinguishing where to find Perl'sheaders from where to find its shared library; but that seems like goodcleanup anyway.Extensions that formerly did something like -I$(perl_archlibexp)/COREshould now do -I$(perl_includedir)/CORE instead. perl_archlibexpis still the place to look for libperl.so, though.If for some reason you don't like the default -isysroot setting, you canoverride that by setting PG_SYSROOT in configure's arguments. I don'tcurrently think people would need to do so, unless maybe for cross-versionbuild purposes.In addition, teach configure where to find tclConfig.sh. Our traditionalmethod of searching $auto_path hasn't worked for the last couple of macOSreleases, and it now seems clear that Apple's not going to change that.The workaround of manually specifying --with-tclconfig was annoyingalready, but Mojave's made it a lot more so because the sysroot path nowhas to be included as well. Let's just wire the knowledge into configureinstead. To avoid breaking builds against non-default Tcl installations(e.g. MacPorts) wherein the $auto_path method probably still works,arrange to try the additional case only after all else has failed.Back-patch to all supported versions, since at least the buildfarmcares about that. The changes are set up to not do anything on macOSreleases that are old enough to not have functional sysroot trees.1 parent5b7e036 commit5e22171
File tree
8 files changed
+56
-7
lines changed- config
- contrib
- hstore_plperl
- jsonb_plperl
- src
- pl/plperl
- template
8 files changed
+56
-7
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 |
| |
17 | 21 |
| |
18 | 22 |
| |
| |||
24 | 28 |
| |
25 | 29 |
| |
26 | 30 |
| |
27 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
28 | 39 |
| |
29 | 40 |
| |
30 | 41 |
| |
|
Lines changed: 18 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
668 | 668 |
| |
669 | 669 |
| |
670 | 670 |
| |
| 671 | + | |
671 | 672 |
| |
672 | 673 |
| |
673 | 674 |
| |
| |||
9773 | 9774 |
| |
9774 | 9775 |
| |
9775 | 9776 |
| |
| 9777 | + | |
| 9778 | + | |
| 9779 | + | |
| 9780 | + | |
| 9781 | + | |
| 9782 | + | |
| 9783 | + | |
| 9784 | + | |
9776 | 9785 |
| |
9777 | 9786 |
| |
9778 | 9787 |
| |
| |||
18306 | 18315 |
| |
18307 | 18316 |
| |
18308 | 18317 |
| |
18309 |
| - | |
| 18318 | + | |
| 18319 | + | |
| 18320 | + | |
| 18321 | + | |
| 18322 | + | |
| 18323 | + | |
| 18324 | + | |
| 18325 | + | |
18310 | 18326 |
| |
18311 | 18327 |
| |
18312 | 18328 |
| |
| |||
18355 | 18371 |
| |
18356 | 18372 |
| |
18357 | 18373 |
| |
18358 |
| - | |
| 18374 | + | |
18359 | 18375 |
| |
18360 | 18376 |
| |
18361 | 18377 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1044 | 1044 |
| |
1045 | 1045 |
| |
1046 | 1046 |
| |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1047 | 1056 |
| |
1048 | 1057 |
| |
1049 | 1058 |
| |
| |||
2229 | 2238 |
| |
2230 | 2239 |
| |
2231 | 2240 |
| |
2232 |
| - | |
| 2241 | + | |
2233 | 2242 |
| |
2234 | 2243 |
| |
2235 | 2244 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
331 | 331 |
| |
332 | 332 |
| |
333 | 333 |
| |
| 334 | + | |
334 | 335 |
| |
335 | 336 |
| |
336 | 337 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 |
| |
7 | 19 |
| |
8 | 20 |
| |
|
0 commit comments
Comments
(0)