git: openjdk/leyden: hermetic-java-runtime: Makefile changes from https://github.com/openjdk/jdk/pull/13709 to demonstrate fully statically linked JDK build, i.e. building java launcher executable statically linked with JDK and hotspot native code.

duke duke at openjdk.org
Tue Nov 21 03:30:20 UTC 2023


Changeset: bceb753f
Author:    Jiangli Zhou <jianglizhou at google.com>
Date:      2023-06-20 15:38:20 +0000
URL:       https://git.openjdk.org/leyden/commit/bceb753f79b4bc767fdfb71d5f68a84430644df6

Makefile changes from https://github.com/openjdk/jdk/pull/13709 to demonstrate fully statically linked JDK build, i.e. building java launcher executable statically linked with JDK and hotspot native code.

To build static JDK:
- bash configure --with-boot-jdk=<jdk_path> --with-static-java=yes
- make static-java-image

! make/Main.gmk
+ make/StaticLink.gmk
! make/autoconf/configure.ac
! make/autoconf/flags-ldflags.m4
! make/autoconf/lib-bundled.m4
! make/autoconf/lib-freetype.m4
! make/autoconf/spec.gmk.in
+ make/autoconf/static-java.m4



More information about the leyden-dev mailing list