RFR: 8327045: Consolidate -fvisibility=hidden as a basic flag for all compilation
Magnus Ihse Bursie
ihse at openjdk.org
Wed Mar 13 10:06:12 UTC 2024
On Wed, 13 Mar 2024 09:57:12 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> After we removed mapfiles, we can setup -fvisibility=hidden (and -Wl,--exclude-libs,ALL) in the most basic flags, so this applies to all compilation.
>
> This will remove duplicate code and make the underlying assumptions of the build clearer.
>
> (This PR replaces https://github.com/openjdk/jdk/pull/18061 which got too messy.)
Two files will have different flags after this patch: `jspawnhelper` (on linux and mac), and `jexec` (on linux only). They are helper executables, which were not compiled with these flags before. This has no practical effect.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18267#issuecomment-1994006990
More information about the build-dev
mailing list