forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit49407dc
committed
On macOS, use -isysroot in link steps as well as compile steps.
We previously put the -isysroot switch only into CPPFLAGS, theorizingthat it was only needed to find the right copies of include files.However, it seems that we also need to use it while linking programs,to find the right stub ".tbd" files for libraries. We got awaywithout that up to now, but apparently that was mostly luck. It mayalso be that failures are only observed when the Xcode version isnoticeably out of sync with the host macOS version; the case that'sprompting action right now is that builds fail when using latest Xcode(12.2) on macOS Catalina, even though it's fine on Big Sur.Hence, add -isysroot to LDFLAGS as well. (It seems that the morecommon practice is to put it in CFLAGS, whence it'd be included atboth compile and link steps. However, we can't mess with CFLAGS inthe platform template file without confusing configure's logic forchoosing default CFLAGS.)This should be back-patched, but first let's see if the buildfarmlikes it on HEAD.Report and patch by James Hilliard (some cosmetic mods by me)Discussion:https://postgr.es/m/20201120003314.20560-1-james.hilliard1@gmail.com1 parent926fa80 commit49407dc
3 files changed
+5
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19192 | 19192 |
| |
19193 | 19193 |
| |
19194 | 19194 |
| |
| 19195 | + | |
19195 | 19196 |
| |
19196 | 19197 |
| |
| 19198 | + | |
19197 | 19199 |
| |
19198 | 19200 |
| |
19199 | 19201 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2360 | 2360 |
| |
2361 | 2361 |
| |
2362 | 2362 |
| |
| 2363 | + | |
2363 | 2364 |
| |
2364 | 2365 |
| |
| 2366 | + | |
2365 | 2367 |
| |
2366 | 2368 |
| |
2367 | 2369 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
|
0 commit comments
Comments
(0)