Integrated: 8338768: Introduce runtime lookup to check for static builds

Magnus Ihse Bursie ihse at openjdk.org
Mon Sep 2 09:17:28 UTC 2024


On Wed, 21 Aug 2024 21:53:39 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: a136a85b
Author:    Magnus Ihse Bursie <ihse at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a136a85b6f5bbc92727883693c1ce31c37a82fd5
Stats:     205 lines in 12 files changed: 109 ins; 21 del; 75 mod

8338768: Introduce runtime lookup to check for static builds

Co-authored-by: Magnus Ihse Bursie <ihse at openjdk.org>
Co-authored-by: Jiangli Zhou <jiangli at openjdk.org>
Reviewed-by: prr, jiangli, alanb

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

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


More information about the build-dev mailing list