-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
-
b22
This enhancement is branched from JDK-8303796 based on the discussions in https://github.com/openjdk/jdk/pull/13709 comments.
To support fully static linking the JDK/hotspot natives with the standard launcher executable, the following enhancements/fixes are need for the existing 'static-libs-image' support:
- Create libjvm.a as well when building 'static-libs-image' target, include it in 'images/static-libs/lib';
- Filter out "external" .o files (those are the .o files included from a different JDK library and needed when creating the .so shared library only) from .a libraries; That's to avoid linker errors due to the duplicate symbols problems from the related .o files;
- For libjvm.a specifically, exclude operator_new.o;
- Handle long arguments case for static build in make/common/NativeCompilation.gmk;
- Ensure zlib and freetype are bundled when building the static-libs-image target, i.e. libzlib.a and libfreetype.a are included in 'images/static-libs/lib';
To support fully static linking the JDK/hotspot natives with the standard launcher executable, the following enhancements/fixes are need for the existing 'static-libs-image' support:
- Create libjvm.a as well when building 'static-libs-image' target, include it in 'images/static-libs/lib';
- Filter out "external" .o files (those are the .o files included from a different JDK library and needed when creating the .so shared library only) from .a libraries; That's to avoid linker errors due to the duplicate symbols problems from the related .o files;
- For libjvm.a specifically, exclude operator_new.o;
- Handle long arguments case for static build in make/common/NativeCompilation.gmk;
- Ensure zlib and freetype are bundled when building the static-libs-image target, i.e. libzlib.a and libfreetype.a are included in 'images/static-libs/lib';
- relates to
-
JDK-8307858 [REDO] JDK-8307194 Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries
-
- Resolved
-
-
JDK-8303796 Optionally build fully statically linked JDK image
-
- Open
-