Re: Use -fvisibility=hidden for shared libraries
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Justin Pryzby <pryzby@telsasoft.com>,
Laurenz Albe <laurenz.albe@cybertec.at>, pgsql-hackers@postgresql.org
Date: 2022-01-11T04:44:06Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2022-01-10 21:11:07 -0600, Justin Pryzby wrote: >> Without the patch, it fails under windows like: > Ah, yea. It's about matching the declarations in ltree.h with the > PG_FUNCTION_INFO_V1() one. > What is bugging me is that I am fairly sure that my local compilers at some > point complained about such mismatches on linux as well. But I can't reproduce > that right now :/ Ah, I wondered about that. I'd sort of expected warnings from mismatched declarations, but I didn't see any on Linux or macOS. regards, tom lane
Commits
-
Mark all symbols exported from extension libraries PGDLLEXPORT.
- 8cf64d35eacc 16.0 landed
-
Default to hidden visibility for extension libraries where possible
- 089480c07705 16.0 landed
-
Remove now superfluous declarations of dlsym()ed symbols.
- fd4bad165539 16.0 landed
-
Add central declarations for dlsym()ed symbols
- f2b73c8d75d5 16.0 landed