Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8307194

Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • infrastructure
    • 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';

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: