The fix for JDK-8246112 put the -lrt link flag in the wrong place, causing it to appear too early in the linker command-line. This changes puts it in the right place.
Contributed by: Matthias Klose (~doko) Testing: - local testing by Matthias - tiers 1-3 - GHA builds ------------- Commit messages: - Fixed whitespace - 8262501: jdk17 libjvm link failure with --as-needed and clock_gettime in librt Changes: https://git.openjdk.java.net/jdk/pull/3503/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3503&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8262501 Stats: 17 lines in 2 files changed: 9 ins; 7 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/3503.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/3503/head:pull/3503 PR: https://git.openjdk.java.net/jdk/pull/3503