When building with link time optimization (lto) , configure flag is --enable-jvm-feature-link-time-opt , we run in the gtest build into a lot of errors. One workaround is just to configure without gtest ; this one changes the make to NOT use the lto build flags for gtest , just for the "normal" libjvm.so .
------------- Commit messages: - JDK-8346987 Changes: https://git.openjdk.org/jdk/pull/23173/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23173&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8346987 Stats: 12 lines in 2 files changed: 0 ins; 0 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/23173.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23173/head:pull/23173 PR: https://git.openjdk.org/jdk/pull/23173