diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-07-31 06:22:02 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-07-31 06:22:02 +0200 |
commit | 73275f093f8969f4d2353fcc803377350aa650f6 (patch) | |
tree | c241f0b6ba3609ce1bd8f8e07225f02a5d679dc9 /src/backend/access/transam/commit_ts.c | |
parent | 0dcea330babd46402f6ca3ea3a552829c99bbe5e (diff) | |
download | postgresql-73275f093f8969f4d2353fcc803377350aa650f6.tar.gz postgresql-73275f093f8969f4d2353fcc803377350aa650f6.zip |
Make building with LTO work on macOS
When building with -flto, the backend binary must keep many otherwise
unused symbols to make them available to dynamically loaded modules /
extensions. This has been done via -Wl,--export-dynamic on many
platforms 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.us
Author: Wolfgang Walther <walther@technowledgy.de>
Discussion: https://www.postgresql.org/message-id/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b@technowledgy.de
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions