]> git.ipfire.org Git - thirdparty/postgresql.git/commit
meson: macos: Correct -exported_symbols_list syntax for Sonoma compat
authorAndres Freund <andres@anarazel.de>
Sat, 30 Sep 2023 19:10:15 +0000 (12:10 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 30 Sep 2023 19:10:52 +0000 (12:10 -0700)
commitd5c5312dc8b66b4ad652ec54ed32029d621e1e93
tree272a760b842c6eadd0085872250a7dc886b1f1e0
parent992d2ca81d2b846e253d4394dac8cd2509fd071a
meson: macos: Correct -exported_symbols_list syntax for Sonoma compat

-exported_symbols_list=... works on Ventura and earlier, but not on
Sonoma. The easiest way to fix it is to -Wl,-exported_symbols_list,@0@ which
actually seems more appropriate anyway, it's obviously a linker argument. It
is easier to use the -Wl,, syntax than passing multiple arguments, due to the
way the export_fmt is used (a single string that's formatted), but if it turns
out to be necessary, we can go for multiple arguments as well.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20230928222248.jw6s7yktpfsfczha@alap3.anarazel.de
Backpatch: 16-, where the meson based buildsystem was added
meson.build