RFR: 8307194: Enhance static-libs-image [v5]
Jiangli Zhou
jiangli at openjdk.org
Wed May 3 20:25:13 UTC 2023
> This PR is branched from the makefile changes for https://bugs.openjdk.org/browse/JDK-8303796 and contains the following for handling the JDK/VM static libraries:
>
> - Create libjvm.a together with other JDK static libraries when building 'static-libs-image' (or 'static-libs-bundles') target, include it in 'images/static-libs/lib';
> - For libjvm.a specifically, exclude operator_new.o;
> - 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;
> - Handle long arguments case for static build in make/common/NativeCompilation.gmk;
> - Address @erikj79's comment in https://github.com/openjdk/jdk/pull/13709#discussion_r1180750185 for LIBJLI_STATIC_EXCLUDE_OBJS;
Jiangli Zhou has updated the pull request incrementally with one additional commit since the last revision:
Update to create and use only hotspot-$(JVM_VARIANT_MAIN)-static-libs, based on @erikj79 input.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13768/files
- new: https://git.openjdk.org/jdk/pull/13768/files/e65aee25..84861990
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13768&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13768&range=03-04
Stats: 6 lines in 1 file changed: 2 ins; 1 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/13768.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13768/head:pull/13768
PR: https://git.openjdk.org/jdk/pull/13768
More information about the build-dev
mailing list