forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit73275f0
committed
Make building with LTO work on macOS
When building with -flto, the backend binary must keep many otherwiseunused symbols to make them available to dynamically loaded modules /extensions. This has been done via -Wl,--export-dynamic on manyplatforms for years. This flag is not supported by the macOS linker,though. Here it's called -Wl,-export_dynamic instead.Thus, make configure pick up on this variant of the flag as well.Meson has the logic upstream as of version 1.5.0.Without this fix, building with -flto fails with errors similar to [1]and [2].[1]:https://postgr.es/m/1581936537572-0.post%40n3.nabble.com[2]:https://postgr.es/m/21800.1499270547%40sss.pgh.pa.usAuthor: Wolfgang Walther <walther@technowledgy.de>Discussion:https://www.postgresql.org/message-id/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b@technowledgy.de1 parent0dcea33 commit73275f0
2 files changed
+49
-0
lines changedLines changed: 43 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19079 | 19079 |
| |
19080 | 19080 |
| |
19081 | 19081 |
| |
| 19082 | + | |
| 19083 | + | |
| 19084 | + | |
19082 | 19085 |
| |
19083 | 19086 |
| |
19084 | 19087 |
| |
| |||
19117 | 19120 |
| |
19118 | 19121 |
| |
19119 | 19122 |
| |
| 19123 | + | |
| 19124 | + | |
| 19125 | + | |
| 19126 | + | |
| 19127 | + | |
| 19128 | + | |
| 19129 | + | |
| 19130 | + | |
| 19131 | + | |
| 19132 | + | |
| 19133 | + | |
| 19134 | + | |
| 19135 | + | |
| 19136 | + | |
| 19137 | + | |
| 19138 | + | |
| 19139 | + | |
| 19140 | + | |
| 19141 | + | |
| 19142 | + | |
| 19143 | + | |
| 19144 | + | |
| 19145 | + | |
| 19146 | + | |
| 19147 | + | |
| 19148 | + | |
| 19149 | + | |
| 19150 | + | |
| 19151 | + | |
| 19152 | + | |
| 19153 | + | |
| 19154 | + | |
| 19155 | + | |
| 19156 | + | |
| 19157 | + | |
| 19158 | + | |
| 19159 | + | |
| 19160 | + | |
| 19161 | + | |
| 19162 | + | |
19120 | 19163 |
| |
19121 | 19164 |
| |
19122 | 19165 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2398 | 2398 |
| |
2399 | 2399 |
| |
2400 | 2400 |
| |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
2401 | 2404 |
| |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
2402 | 2408 |
| |
2403 | 2409 |
| |
2404 | 2410 |
| |
|
0 commit comments
Comments
(0)