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.)

-------------

Commit messages:
 - 8327045: Consolidate -fvisibility=hidden as a basic flag for all compilation

Changes: https://git.openjdk.org/jdk/pull/18267/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18267&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8327045
  Stats: 46 lines in 6 files changed: 4 ins; 37 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/18267.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18267/head:pull/18267

PR: https://git.openjdk.org/jdk/pull/18267

Reply via email to