8352064: AIX: now also able to build static-jdk image with a statically linked launcher

Reviewed-by: mdoerr, mbaesken, ihse
This commit is contained in:
Joachim Kern 2025-03-24 16:15:36 +00:00
parent 5709f79cf8
commit d8c2f59a1b
5 changed files with 65 additions and 5 deletions

View file

@ -167,6 +167,14 @@ endif
ifeq ($(call isTargetOs, aix), true)
# AIX requires a static libjli because the compiler doesn't support '-rpath'
BUILD_LIBJLI_TYPE := STATIC_LIBRARY
# This is the object file to provide the dladdr API, which is not
# part of AIX. It occurs several times in the jdk code base.
# Do not include it. When statically linking the java
# launcher with all JDK and VM static libraries, we use the
# --whole-archive linker option. The duplicate objects in different
# static libraries cause linking errors due to duplicate symbols.
LIBJLI_STATIC_EXCLUDE_OBJS += java_md_aix.o
endif
$(eval $(call SetupJdkLibrary, BUILD_LIBJLI, \