Linux/gcc currently enables linktime-gc on libjvm.so, when it is configured for the build. Linux/clang enables it (when configured) so far only for the JDK libs. This should be changed.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8387702 Changes: https://git.openjdk.org/jdk/pull/31765/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31765&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8387702 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/31765.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31765/head:pull/31765 PR: https://git.openjdk.org/jdk/pull/31765
