- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit19ac2cb
committed
Back off using -isysroot on Darwin.
Rethink the solution applied in commit5e22171 to get PL/Tcl tobuild on macOS Mojave. I feared that adding -isysroot globally mighthave undesirable consequences, and sure enough Jakob Egger reportedone: it complicates building extensions with a different Xcode versionthan was used for the core server. (I find that a risky propositionin general, but apparently it works most of the time, so we shouldn'tbreak it if we don't have to.)We'd already adopted the solution for PL/Perl of inserting the sysrootpath directly into the -I switches used to find Perl's headers, and wecan do the same thing for PL/Tcl by changing the -iwithsysroot switchthat Apple's tclConfig.sh reports. This restricts the risks to PL/Perland PL/Tcl themselves and directly-dependent extensions, which is a lotmore pleasing in general than a global -isysroot switch.Along the way, tighten the test to see if we need to inject the sysrootpath into $perl_includedir, as I'd speculated about upthread but notgotten round to doing.As before, back-patch to all supported versions.Discussion:https://postgr.es/m/20840.1537850987@sss.pgh.pa.us1 parent9d974fa commit19ac2cb
3 files changed
+18
-7
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7796 | 7796 |
| |
7797 | 7797 |
| |
7798 | 7798 |
| |
7799 |
| - | |
| 7799 | + | |
7800 | 7800 |
| |
7801 | 7801 |
| |
7802 | 7802 |
| |
| |||
30257 | 30257 |
| |
30258 | 30258 |
| |
30259 | 30259 |
| |
30260 |
| - | |
| 30260 | + | |
| 30261 | + | |
| 30262 | + | |
| 30263 | + | |
| 30264 | + | |
| 30265 | + | |
30261 | 30266 |
| |
30262 | 30267 |
| |
30263 | 30268 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
884 | 884 |
| |
885 | 885 |
| |
886 | 886 |
| |
887 |
| - | |
| 887 | + | |
888 | 888 |
| |
889 | 889 |
| |
890 | 890 |
| |
| |||
1891 | 1891 |
| |
1892 | 1892 |
| |
1893 | 1893 |
| |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
1894 | 1899 |
| |
1895 | 1900 |
| |
1896 | 1901 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
| 12 | + | |
10 | 13 |
| |
11 |
| - | |
12 |
| - | |
13 |
| - | |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
|
0 commit comments
Comments
(0)