RFR: 8329704: Implement framework for proper handling of JDK_LIBS

Magnus Ihse Bursie ihse at openjdk.org
Fri Apr 5 14:05:30 UTC 2024


This is the pinnacle of the recent stream of refactorings in the build system. This patch introduces a more abstract concept of "JDK_LIBS", where only the library name (e.g. "java" or "java.desktop:jawt") is specified, and the build system turns this into suitable linker flags: `-ljawt -L<correct path>` or `jawt.lib -libpath:<correct path>`, depending on linker. It will also automatically create proper dependencies.

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

Commit messages:
 - Fix missing include for libw2k_lsa_auth
 - Fix missing include for libsunmscapi
 - Do not link libjawt with libawt on macOS
 - 8329704: Implement framework for proper handling of JDK_LIBS

Changes: https://git.openjdk.org/jdk/pull/18649/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18649&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8329704
  Stats: 572 lines in 38 files changed: 205 ins; 266 del; 101 mod
  Patch: https://git.openjdk.org/jdk/pull/18649.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18649/head:pull/18649

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


More information about the build-dev mailing list