RFR: 8338768: Introduce runtime lookup to check for static builds [v2]

Magnus Ihse Bursie ihse at openjdk.org
Wed Aug 21 22:14:40 UTC 2024


> As a preparation for Hermetic Java, we need to have a way to look up during runtime if we are using a statically linked library or not.
> 
> This change will be the first step needed towards compiling the object files only once, and then link them into either dynamic or static libraries. (The only exception will be the linktype.c[pp] files, which needs to be compiled twice, once for the dynamic libraries and once for the static libraries.) Getting there will require further work though. 
> 
> This is part of the changes that make up the draft PR https://github.com/openjdk/jdk/pull/19478, which I have broken out.

Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision:

  Also update build to link properly

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20666/files
  - new: https://git.openjdk.org/jdk/pull/20666/files/e917f6a2..072a910d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20666&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20666&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/20666.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20666/head:pull/20666

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


More information about the core-libs-dev mailing list