As suggested by @djelinski in https://github.com/openjdk/jdk/pull/17986#issuecomment-1965991536, we can (and should) remove the special `$LDCXX` linker, and instead just pass the C++ standard libraries to gcc.
------------- Commit messages: - 8345813: Replace $LDCXX with proper libraries to $LD instead Changes: https://git.openjdk.org/jdk/pull/22648/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22648&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8345813 Stats: 60 lines in 9 files changed: 18 ins; 31 del; 11 mod Patch: https://git.openjdk.org/jdk/pull/22648.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22648/head:pull/22648 PR: https://git.openjdk.org/jdk/pull/22648