8328824: Clean up java.base native compilation
Reviewed-by: erikj
This commit is contained in:
parent
af15c68f3c
commit
26b2ec4847
@ -931,6 +931,11 @@ else
|
|||||||
java.base-copy: build-hsdis
|
java.base-copy: build-hsdis
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# On Windows, we need to copy tzmappings generated by gensrc
|
||||||
|
ifeq ($(call isTargetOs, windows), true)
|
||||||
|
java.base-copy: java.base-gensrc
|
||||||
|
endif
|
||||||
|
|
||||||
# jdk.accessibility depends on java.desktop
|
# jdk.accessibility depends on java.desktop
|
||||||
jdk.accessibility-libs: java.desktop-libs
|
jdk.accessibility-libs: java.desktop-libs
|
||||||
|
|
||||||
|
@ -266,6 +266,19 @@ define SetupJdkExecutableBody
|
|||||||
$1_LIBS += $(LIBCXX)
|
$1_LIBS += $(LIBCXX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($$($1_SRC), )
|
||||||
|
ifneq ($$(MODULE), )
|
||||||
|
$1_SRC := $$(call FindSrcDirsForComponent, $$(MODULE), $$($1_NAME))
|
||||||
|
else
|
||||||
|
$$(error Must specify SRC in a MODULE free context)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
$1_SRC := $$(foreach dir, $$($1_SRC), $$(call ProcessDir, $$(dir)))
|
||||||
|
endif
|
||||||
|
ifneq ($$($1_EXTRA_SRC), )
|
||||||
|
$1_SRC += $$(foreach dir, $$($1_EXTRA_SRC), $$(call ProcessDir, $$(dir)))
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($$($1_VERSIONINFO_RESOURCE), )
|
ifeq ($$($1_VERSIONINFO_RESOURCE), )
|
||||||
$1_VERSIONINFO_RESOURCE := $$(GLOBAL_VERSION_INFO_RESOURCE)
|
$1_VERSIONINFO_RESOURCE := $$(GLOBAL_VERSION_INFO_RESOURCE)
|
||||||
endif
|
endif
|
||||||
@ -283,6 +296,12 @@ define SetupJdkExecutableBody
|
|||||||
# Prepend JDK libs before external libs
|
# Prepend JDK libs before external libs
|
||||||
$1_LIBS := $$($1_JDK_LIBS) $$($1_LIBS)
|
$1_LIBS := $$($1_JDK_LIBS) $$($1_LIBS)
|
||||||
|
|
||||||
|
ifneq ($$($1_EXTRA_HEADER_DIRS), )
|
||||||
|
$1_PROCESSED_EXTRA_HEADER_DIRS := $$(foreach dir, $$($1_EXTRA_HEADER_DIRS), \
|
||||||
|
$$(call ProcessDir, $$(dir)))
|
||||||
|
$1_EXTRA_HEADER_FLAGS := $$(addprefix -I, $$($1_PROCESSED_EXTRA_HEADER_DIRS))
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($$($1_DEFAULT_CFLAGS), false)
|
ifneq ($$($1_DEFAULT_CFLAGS), false)
|
||||||
# Set the default flags first to be able to override
|
# Set the default flags first to be able to override
|
||||||
$1_CFLAGS := $$(filter-out $$($1_CFLAGS_FILTER_OUT), $$(CFLAGS_JDKEXE)) $$($1_CFLAGS)
|
$1_CFLAGS := $$(filter-out $$($1_CFLAGS_FILTER_OUT), $$(CFLAGS_JDKEXE)) $$($1_CFLAGS)
|
||||||
@ -291,6 +310,16 @@ define SetupJdkExecutableBody
|
|||||||
$1_CXXFLAGS := $$(filter-out $$($1_CXXFLAGS_FILTER_OUT), $$(CXXFLAGS_JDKEXE)) $$($1_CXXFLAGS)
|
$1_CXXFLAGS := $$(filter-out $$($1_CXXFLAGS_FILTER_OUT), $$(CXXFLAGS_JDKEXE)) $$($1_CXXFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($$($1_CFLAGS), )
|
||||||
|
$1_CFLAGS += $$($1_SRC_HEADER_FLAGS) $$($1_EXTRA_HEADER_FLAGS)
|
||||||
|
endif
|
||||||
|
ifneq ($$($1_CXXFLAGS), )
|
||||||
|
$1_CXXFLAGS += $$($1_SRC_HEADER_FLAGS) $$($1_EXTRA_HEADER_FLAGS)
|
||||||
|
endif
|
||||||
|
ifeq ($$($1_CFLAGS)$$($1_CXXFLAGS), )
|
||||||
|
$1_CFLAGS += $$($1_SRC_HEADER_FLAGS) $$($1_EXTRA_HEADER_FLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($$($1_DEFAULT_LDFLAGS), false)
|
ifneq ($$($1_DEFAULT_LDFLAGS), false)
|
||||||
# Set the default flags first to be able to override
|
# Set the default flags first to be able to override
|
||||||
$1_LDFLAGS := $$(filter-out $$($1_LDFLAGS_FILTER_OUT), $$(LDFLAGS_JDKEXE)) $$($1_LDFLAGS)
|
$1_LDFLAGS := $$(filter-out $$($1_LDFLAGS_FILTER_OUT), $$(LDFLAGS_JDKEXE)) $$($1_LDFLAGS)
|
||||||
|
@ -26,14 +26,13 @@
|
|||||||
$(eval $(call IncludeCustomExtension, hotspot/lib/CompileGtest.gmk))
|
$(eval $(call IncludeCustomExtension, hotspot/lib/CompileGtest.gmk))
|
||||||
|
|
||||||
GTEST_TEST_SRC += $(TOPDIR)/test/hotspot/gtest
|
GTEST_TEST_SRC += $(TOPDIR)/test/hotspot/gtest
|
||||||
GTEST_LAUNCHER_SRC := $(TOPDIR)/test/hotspot/gtest/gtestLauncher.cpp
|
|
||||||
|
|
||||||
ifeq ($(ASAN_ENABLED), true)
|
ifeq ($(ASAN_ENABLED), true)
|
||||||
GTEST_LAUNCHER_SRC += $(TOPDIR)/make/data/asan/asan_default_options.cpp
|
GTEST_LAUNCHER_EXTRA_FILES += $(TOPDIR)/make/data/asan/asan_default_options.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(LSAN_ENABLED), true)
|
ifeq ($(LSAN_ENABLED), true)
|
||||||
GTEST_LAUNCHER_SRC += $(TOPDIR)/make/data/lsan/lsan_default_options.cpp
|
GTEST_LAUNCHER_EXTRA_FILES += $(TOPDIR)/make/data/lsan/lsan_default_options.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# On Windows, there are no internal debug symbols so must set copying to true
|
# On Windows, there are no internal debug symbols so must set copying to true
|
||||||
@ -136,7 +135,9 @@ $(eval $(call SetupJdkExecutable, BUILD_GTEST_LAUNCHER, \
|
|||||||
TYPE := EXECUTABLE, \
|
TYPE := EXECUTABLE, \
|
||||||
LINK_TYPE := C++, \
|
LINK_TYPE := C++, \
|
||||||
OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
|
OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
|
||||||
EXTRA_FILES := $(GTEST_LAUNCHER_SRC), \
|
SRC := $(TOPDIR)/test/hotspot/gtest, \
|
||||||
|
INCLUDE_FILES := gtestLauncher.cpp, \
|
||||||
|
EXTRA_FILES := $(GTEST_LAUNCHER_EXTRA_FILES), \
|
||||||
OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/launcher-objs, \
|
OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/launcher-objs, \
|
||||||
DEFAULT_CFLAGS := false, \
|
DEFAULT_CFLAGS := false, \
|
||||||
CFLAGS := $(JVM_CFLAGS) \
|
CFLAGS := $(JVM_CFLAGS) \
|
||||||
|
@ -246,6 +246,18 @@ ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
|
|||||||
TARGETS += $(COPY_LIBFFI)
|
TARGETS += $(COPY_LIBFFI)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Copy tzmappings file for Windows
|
||||||
|
|
||||||
|
ifeq ($(call isTargetOs, windows), true)
|
||||||
|
$(eval $(call SetupCopyFiles, COPY_TZMAPPINGS, \
|
||||||
|
FILES := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/windows/conf/tzmappings, \
|
||||||
|
DEST := $(call FindLibDirForModule, $(MODULE)), \
|
||||||
|
))
|
||||||
|
|
||||||
|
TARGETS += $(COPY_TZMAPPINGS)
|
||||||
|
endif
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Optionally copy hsdis into the image
|
# Optionally copy hsdis into the image
|
||||||
|
|
||||||
|
@ -28,10 +28,13 @@ include LauncherCommon.gmk
|
|||||||
# Hook to include the corresponding custom file, if present.
|
# Hook to include the corresponding custom file, if present.
|
||||||
$(eval $(call IncludeCustomExtension, modules/java.base/Launcher.gmk))
|
$(eval $(call IncludeCustomExtension, modules/java.base/Launcher.gmk))
|
||||||
|
|
||||||
JAVA_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/launcher/java.rc
|
JAVA_VERSION_INFO_RESOURCE := \
|
||||||
|
$(TOPDIR)/src/java.base/windows/native/launcher/java.rc
|
||||||
|
|
||||||
JAVA_RCFLAGS ?= -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
|
JAVA_RCFLAGS ?= -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Build java
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
$(eval $(call SetupBuildLauncher, java, \
|
$(eval $(call SetupBuildLauncher, java, \
|
||||||
@ -41,6 +44,10 @@ $(eval $(call SetupBuildLauncher, java, \
|
|||||||
OPTIMIZATION := HIGH, \
|
OPTIMIZATION := HIGH, \
|
||||||
))
|
))
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Build javaw
|
||||||
|
################################################################################
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, windows), true)
|
ifeq ($(call isTargetOs, windows), true)
|
||||||
$(eval $(call SetupBuildLauncher, javaw, \
|
$(eval $(call SetupBuildLauncher, javaw, \
|
||||||
CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
|
CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
|
||||||
@ -49,19 +56,24 @@ ifeq ($(call isTargetOs, windows), true)
|
|||||||
))
|
))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Build keytool
|
||||||
|
################################################################################
|
||||||
|
|
||||||
$(eval $(call SetupBuildLauncher, keytool, \
|
$(eval $(call SetupBuildLauncher, keytool, \
|
||||||
MAIN_CLASS := sun.security.tools.keytool.Main, \
|
MAIN_CLASS := sun.security.tools.keytool.Main, \
|
||||||
))
|
))
|
||||||
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, linux), true)
|
ifeq ($(call isTargetOs, linux), true)
|
||||||
|
##############################################################################
|
||||||
|
## Build jexec
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
$(eval $(call SetupJdkExecutable, BUILD_JEXEC, \
|
$(eval $(call SetupJdkExecutable, BUILD_JEXEC, \
|
||||||
NAME := jexec, \
|
NAME := jexec, \
|
||||||
SRC := $(TOPDIR)/src/$(MODULE)/unix/native/launcher, \
|
SRC := $(TOPDIR)/src/$(MODULE)/unix/native/launcher, \
|
||||||
INCLUDE_FILES := jexec.c, \
|
|
||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
CFLAGS := -I$(TOPDIR)/src/$(MODULE)/share/native/libjli, \
|
EXTRA_HEADER_DIRS := libjli, \
|
||||||
CFLAGS_linux := -fPIC, \
|
CFLAGS_linux := -fPIC, \
|
||||||
LD_SET_ORIGIN := false, \
|
LD_SET_ORIGIN := false, \
|
||||||
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
|
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
|
||||||
@ -70,21 +82,21 @@ ifeq ($(call isTargetOs, linux), true)
|
|||||||
TARGETS += $(BUILD_JEXEC)
|
TARGETS += $(BUILD_JEXEC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
ifeq ($(call isTargetOsType, unix), true)
|
ifeq ($(call isTargetOsType, unix), true)
|
||||||
|
##############################################################################
|
||||||
|
## Build jspawnhelper
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
$(eval $(call SetupJdkExecutable, BUILD_JSPAWNHELPER, \
|
$(eval $(call SetupJdkExecutable, BUILD_JSPAWNHELPER, \
|
||||||
NAME := jspawnhelper, \
|
NAME := jspawnhelper, \
|
||||||
SRC := $(TOPDIR)/src/$(MODULE)/unix/native/jspawnhelper, \
|
|
||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
CFLAGS := $(VERSION_CFLAGS) \
|
CFLAGS := $(VERSION_CFLAGS), \
|
||||||
-I$(TOPDIR)/src/$(MODULE)/unix/native/libjava, \
|
EXTRA_HEADER_DIRS := libjava, \
|
||||||
EXTRA_OBJECT_FILES := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjava/childproc$(OBJ_SUFFIX), \
|
EXTRA_OBJECT_FILES := \
|
||||||
|
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjava/childproc$(OBJ_SUFFIX), \
|
||||||
LD_SET_ORIGIN := false, \
|
LD_SET_ORIGIN := false, \
|
||||||
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
|
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_JSPAWNHELPER)
|
TARGETS += $(BUILD_JSPAWNHELPER)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
|
||||||
|
@ -37,7 +37,8 @@ $(call FillFindCache, $(wildcard $(TOPDIR)/src/java.base/*/native))
|
|||||||
include lib/CoreLibraries.gmk
|
include lib/CoreLibraries.gmk
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Create the network library
|
## Build libnet
|
||||||
|
################################################################################
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBNET, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBNET, \
|
||||||
NAME := net, \
|
NAME := net, \
|
||||||
@ -45,18 +46,22 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBNET, \
|
|||||||
DISABLED_WARNINGS_gcc_net_util_md.c := format-nonliteral, \
|
DISABLED_WARNINGS_gcc_net_util_md.c := format-nonliteral, \
|
||||||
DISABLED_WARNINGS_gcc_NetworkInterface.c := unused-function, \
|
DISABLED_WARNINGS_gcc_NetworkInterface.c := unused-function, \
|
||||||
DISABLED_WARNINGS_clang_net_util_md.c := format-nonliteral, \
|
DISABLED_WARNINGS_clang_net_util_md.c := format-nonliteral, \
|
||||||
DISABLED_WARNINGS_clang_aix_DefaultProxySelector.c := deprecated-non-prototype, \
|
DISABLED_WARNINGS_clang_aix_DefaultProxySelector.c := \
|
||||||
|
deprecated-non-prototype, \
|
||||||
DISABLED_WARNINGS_clang_aix_NetworkInterface.c := gnu-pointer-arith, \
|
DISABLED_WARNINGS_clang_aix_NetworkInterface.c := gnu-pointer-arith, \
|
||||||
DISABLED_WARNINGS_microsoft_InetAddress.c := 4244, \
|
DISABLED_WARNINGS_microsoft_InetAddress.c := 4244, \
|
||||||
DISABLED_WARNINGS_microsoft_ResolverConfigurationImpl.c := 4996, \
|
DISABLED_WARNINGS_microsoft_ResolverConfigurationImpl.c := 4996, \
|
||||||
LDFLAGS_windows := -delayload:secur32.dll -delayload:iphlpapi.dll \
|
LDFLAGS_windows := -delayload:iphlpapi.dll -delayload:secur32.dll \
|
||||||
-delayload:winhttp.dll, \
|
-delayload:winhttp.dll, \
|
||||||
LIBS_unix := -ljvm -ljava, \
|
JDK_LIBS_unix := -ljava -ljvm, \
|
||||||
|
JDK_LIBS_windows := $(WIN_JAVA_LIB) jvm.lib, \
|
||||||
LIBS_linux := $(LIBDL), \
|
LIBS_linux := $(LIBDL), \
|
||||||
LIBS_aix := $(LIBDL),\
|
LIBS_aix := $(LIBDL),\
|
||||||
LIBS_windows := ws2_32.lib jvm.lib secur32.lib iphlpapi.lib winhttp.lib \
|
LIBS_windows := advapi32.lib delayimp.lib iphlpapi.lib secur32.lib \
|
||||||
delayimp.lib $(WIN_JAVA_LIB) advapi32.lib, \
|
winhttp.lib ws2_32.lib, \
|
||||||
LIBS_macosx := -framework CoreFoundation -framework CoreServices, \
|
LIBS_macosx := \
|
||||||
|
-framework CoreFoundation \
|
||||||
|
-framework CoreServices, \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(BUILD_LIBNET): $(BUILD_LIBJAVA)
|
$(BUILD_LIBNET): $(BUILD_LIBJAVA)
|
||||||
@ -64,7 +69,8 @@ $(BUILD_LIBNET): $(BUILD_LIBJAVA)
|
|||||||
TARGETS += $(BUILD_LIBNET)
|
TARGETS += $(BUILD_LIBNET)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Create the nio library
|
## Build libnio
|
||||||
|
################################################################################
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBNIO, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBNIO, \
|
||||||
NAME := nio, \
|
NAME := nio, \
|
||||||
@ -73,100 +79,96 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBNIO, \
|
|||||||
libnio/ch \
|
libnio/ch \
|
||||||
libnio/fs \
|
libnio/fs \
|
||||||
libnet, \
|
libnet, \
|
||||||
LIBS_unix := -ljava -lnet, \
|
JDK_LIBS_unix := -ljava -lnet, \
|
||||||
LIBS_linux := -lpthread $(LIBDL), \
|
JDK_LIBS_windows := $(WIN_JAVA_LIB) jvm.lib \
|
||||||
|
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib, \
|
||||||
|
LIBS_linux := $(LIBDL) -lpthread, \
|
||||||
LIBS_aix := $(LIBDL), \
|
LIBS_aix := $(LIBDL), \
|
||||||
LIBS_macosx := \
|
LIBS_macosx := \
|
||||||
-framework CoreFoundation -framework CoreServices, \
|
-framework CoreFoundation \
|
||||||
LIBS_windows := jvm.lib Mswsock.lib ws2_32.lib $(WIN_JAVA_LIB) \
|
-framework CoreServices, \
|
||||||
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib \
|
LIBS_windows := advapi32.lib mswsock.lib ws2_32.lib, \
|
||||||
advapi32.lib, \
|
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBNIO)
|
TARGETS += $(BUILD_LIBNIO)
|
||||||
|
|
||||||
$(BUILD_LIBNIO): $(BUILD_LIBNET)
|
$(BUILD_LIBNIO): $(BUILD_LIBNET)
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Create the macosx security library
|
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, macosx), true)
|
ifeq ($(call isTargetOs, macosx), true)
|
||||||
|
##############################################################################
|
||||||
|
## Build libosxsecurity
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBOSXSECURITY, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBOSXSECURITY, \
|
||||||
NAME := osxsecurity, \
|
NAME := osxsecurity, \
|
||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
DISABLED_WARNINGS_clang_KeystoreImpl.m := deprecated-declarations, \
|
DISABLED_WARNINGS_clang_KeystoreImpl.m := deprecated-declarations, \
|
||||||
LDFLAGS := -L$(SUPPORT_OUTPUTDIR)/modules_libs/java.base,\
|
LDFLAGS := -L$(SUPPORT_OUTPUTDIR)/modules_libs/java.base,\
|
||||||
LIBS := \
|
JDK_LIBS := $(JDKLIB_LIBS), \
|
||||||
-lobjc \
|
LIBS_macosx := -lobjc \
|
||||||
-framework CoreServices \
|
-framework CoreServices \
|
||||||
-framework Security \
|
|
||||||
-framework Foundation \
|
-framework Foundation \
|
||||||
$(JDKLIB_LIBS), \
|
-framework Security, \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(BUILD_LIBOSXSECURITY): $(BUILD_LIBJAVA)
|
$(BUILD_LIBOSXSECURITY): $(BUILD_LIBJAVA)
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBOSXSECURITY)
|
TARGETS += $(BUILD_LIBOSXSECURITY)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
ifeq ($(call isTargetOsType, unix)+$(STATIC_BUILD), true+false)
|
||||||
# Create the jsig library
|
##############################################################################
|
||||||
|
## Build libjsig
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
ifeq ($(call isTargetOsType, unix), true)
|
$(eval $(call SetupJdkLibrary, BUILD_LIBJSIG, \
|
||||||
ifeq ($(STATIC_BUILD), false)
|
NAME := jsig, \
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBJSIG, \
|
OPTIMIZATION := LOW, \
|
||||||
NAME := jsig, \
|
jsig.c_CFLAGS := -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"', \
|
||||||
OPTIMIZATION := LOW, \
|
LIBS_linux := $(LIBDL), \
|
||||||
jsig.c_CFLAGS := -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"', \
|
LIBS_aix := $(LIBDL), \
|
||||||
LIBS_linux := $(LIBDL), \
|
))
|
||||||
LIBS_aix := $(LIBDL), \
|
|
||||||
))
|
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBJSIG)
|
TARGETS += $(BUILD_LIBJSIG)
|
||||||
|
|
||||||
############################################################################
|
##############################################################################
|
||||||
# Create symlinks to libjsig in each JVM variant sub dir
|
# Create symlinks to libjsig in each JVM variant sub dir
|
||||||
ifneq ($(STATIC_LIBS), true)
|
ifneq ($(STATIC_LIBS), true)
|
||||||
LIB_OUTPUTDIR := $(call FindLibDirForModule, java.base)
|
LIB_OUTPUTDIR := $(call FindLibDirForModule, java.base)
|
||||||
|
|
||||||
# $1 variant subdir
|
# $1 variant subdir
|
||||||
define CreateSymlinks
|
define CreateSymlinks
|
||||||
# Always symlink from libdir/variant/libjsig.so -> ../libjsig.so.
|
# Always symlink from libdir/variant/libjsig.so -> ../libjsig.so.
|
||||||
$(LIB_OUTPUTDIR)/$1/$(call SHARED_LIBRARY,jsig): \
|
$(LIB_OUTPUTDIR)/$1/$(call SHARED_LIBRARY,jsig): \
|
||||||
$(LIB_OUTPUTDIR)/$(call SHARED_LIBRARY,jsig)
|
$(LIB_OUTPUTDIR)/$(call SHARED_LIBRARY,jsig)
|
||||||
$$(call MakeDir, $$(@D))
|
$$(call MakeDir, $$(@D))
|
||||||
$(RM) $$@
|
$(RM) $$@
|
||||||
$(LN) -s ../$$(@F) $$@
|
$(LN) -s ../$$(@F) $$@
|
||||||
|
|
||||||
TARGETS += $(LIB_OUTPUTDIR)/$1/$(call SHARED_LIBRARY,jsig)
|
TARGETS += $(LIB_OUTPUTDIR)/$1/$(call SHARED_LIBRARY,jsig)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# The subdir is the same as the variant
|
|
||||||
$(foreach v, $(JVM_VARIANTS), $(eval $(call CreateSymlinks,$v)))
|
|
||||||
endif
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
|
# The subdir is the same as the variant
|
||||||
|
$(foreach v, $(JVM_VARIANTS), $(eval $(call CreateSymlinks,$v)))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Create the symbols file for static builds.
|
# Create the symbols file for static builds.
|
||||||
|
|
||||||
ifeq ($(STATIC_BUILD), true)
|
ifeq ($(STATIC_BUILD), true)
|
||||||
|
STATIC_SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base
|
||||||
JAVA_BASE_EXPORT_SYMBOLS_SRC := \
|
JAVA_BASE_EXPORT_SYMBOLS_SRC := \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$(LIBRARY_PREFIX)jli.symbols \
|
$(STATIC_SYMBOLS_DIR)/$(LIBRARY_PREFIX)jli.symbols \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$(LIBRARY_PREFIX)java.symbols \
|
$(STATIC_SYMBOLS_DIR)/$(LIBRARY_PREFIX)java.symbols \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$(LIBRARY_PREFIX)net.symbols \
|
$(STATIC_SYMBOLS_DIR)/$(LIBRARY_PREFIX)net.symbols \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$(LIBRARY_PREFIX)nio.symbols \
|
$(STATIC_SYMBOLS_DIR)/$(LIBRARY_PREFIX)nio.symbols \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$(LIBRARY_PREFIX)verify.symbols \
|
$(STATIC_SYMBOLS_DIR)/$(LIBRARY_PREFIX)verify.symbols \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$(LIBRARY_PREFIX)zip.symbols \
|
$(STATIC_SYMBOLS_DIR)/$(LIBRARY_PREFIX)zip.symbols \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$(LIBRARY_PREFIX)jimage.symbols \
|
$(STATIC_SYMBOLS_DIR)/$(LIBRARY_PREFIX)jimage.symbols \
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server/$(LIBRARY_PREFIX)jvm.symbols \
|
$(STATIC_SYMBOLS_DIR)/server/$(LIBRARY_PREFIX)jvm.symbols \
|
||||||
#
|
#
|
||||||
|
|
||||||
JAVA_BASE_EXPORT_SYMBOL_FILE := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base/java.base.symbols
|
JAVA_BASE_EXPORT_SYMBOL_FILE := $(STATIC_SYMBOLS_DIR)/java.base.symbols
|
||||||
|
|
||||||
$(JAVA_BASE_EXPORT_SYMBOL_FILE): $(JAVA_BASE_EXPORT_SYMBOLS_SRC)
|
$(JAVA_BASE_EXPORT_SYMBOL_FILE): $(JAVA_BASE_EXPORT_SYMBOLS_SRC)
|
||||||
$(call LogInfo, Generating java.base.symbols file)
|
$(call LogInfo, Generating java.base.symbols file)
|
||||||
@ -181,56 +183,47 @@ ifeq ($(STATIC_BUILD), true)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copy tzmappings file for Windows
|
## Build libsyslookup
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, windows), true)
|
|
||||||
$(eval $(call SetupCopyFiles, COPY_TZMAPPINGS, \
|
|
||||||
FILES := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/windows/conf/tzmappings, \
|
|
||||||
DEST := $(call FindLibDirForModule, $(MODULE)), \
|
|
||||||
))
|
|
||||||
TARGETS += $(COPY_TZMAPPINGS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Create system lookup
|
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_SYSLOOKUPLIB, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBSYSLOOKUP, \
|
||||||
NAME := syslookup, \
|
NAME := syslookup, \
|
||||||
LD_SET_ORIGIN := false, \
|
LD_SET_ORIGIN := false, \
|
||||||
LDFLAGS_linux := -Wl$(COMMA)--no-as-needed, \
|
LDFLAGS_linux := -Wl$(COMMA)--no-as-needed, \
|
||||||
LDFLAGS_aix := -brtl -bexpfull, \
|
LDFLAGS_aix := -brtl -bexpfull, \
|
||||||
LIBS_linux := -lm -ldl, \
|
LIBS_linux := $(LIBDL) $(LIBM), \
|
||||||
LIBS_aix := -lm -ldecNumber, \
|
LIBS_aix := -ldecNumber $(LIBM), \
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_SYSLOOKUPLIB)
|
TARGETS += $(BUILD_LIBSYSLOOKUP)
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Create fallback linker lib
|
|
||||||
|
|
||||||
ifeq ($(ENABLE_FALLBACK_LINKER), true)
|
ifeq ($(ENABLE_FALLBACK_LINKER), true)
|
||||||
|
##############################################################################
|
||||||
|
## Build libfallbackLinker
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBFALLBACKLINKER, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBFALLBACKLINKER, \
|
||||||
NAME := fallbackLinker, \
|
NAME := fallbackLinker, \
|
||||||
CFLAGS := $(LIBFFI_CFLAGS), \
|
CFLAGS := $(LIBFFI_CFLAGS), \
|
||||||
LIBS := $(LIBFFI_LIBS), \
|
LIBS := $(LIBFFI_LIBS), \
|
||||||
LIBS_windows := $(LIBFFI_LIBS) ws2_32.lib, \
|
LIBS_windows := ws2_32.lib, \
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBFALLBACKLINKER)
|
TARGETS += $(BUILD_LIBFALLBACKLINKER)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, linux)+$(call isTargetCpu, x86_64)+$(INCLUDE_COMPILER2)+$(filter $(TOOLCHAIN_TYPE), gcc), true+true+true+gcc)
|
ifeq ($(call isTargetOs, linux)+$(call isTargetCpu, x86_64)+$(INCLUDE_COMPILER2)+$(filter $(TOOLCHAIN_TYPE), gcc), true+true+true+gcc)
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIB_SIMD_SORT, \
|
##############################################################################
|
||||||
|
## Build libsimdsort
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
$(eval $(call SetupJdkLibrary, BUILD_LIBSIMD_SORT, \
|
||||||
NAME := simdsort, \
|
NAME := simdsort, \
|
||||||
LINK_TYPE := C++, \
|
LINK_TYPE := C++, \
|
||||||
OPTIMIZATION := HIGH, \
|
OPTIMIZATION := HIGH, \
|
||||||
CXXFLAGS := -std=c++17, \
|
CXXFLAGS := -std=c++17, \
|
||||||
LIBS_linux := -lm -ldl, \
|
LIBS_linux := $(LIBDL) $(LIBM), \
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIB_SIMD_SORT)
|
TARGETS += $(BUILD_LIBSIMD_SORT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
|
||||||
|
@ -23,25 +23,27 @@
|
|||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
|
|
||||||
##########################################################################################
|
################################################################################
|
||||||
|
## Build libverify
|
||||||
|
################################################################################
|
||||||
|
|
||||||
LIBVERIFY_OPTIMIZATION := HIGH
|
LIBVERIFY_OPTIMIZATION := HIGH
|
||||||
ifeq ($(call isTargetOs, linux), true)
|
ifeq ($(call isTargetOs, linux)+$(COMPILE_WITH_DEBUG_SYMBOLS), true+true)
|
||||||
ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true)
|
LIBVERIFY_OPTIMIZATION := LOW
|
||||||
LIBVERIFY_OPTIMIZATION := LOW
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBVERIFY, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBVERIFY, \
|
||||||
NAME := verify, \
|
NAME := verify, \
|
||||||
OPTIMIZATION := $(LIBVERIFY_OPTIMIZATION), \
|
OPTIMIZATION := $(LIBVERIFY_OPTIMIZATION), \
|
||||||
LIBS_unix := -ljvm, \
|
JDK_LIBS_unix := -ljvm, \
|
||||||
LIBS_windows := jvm.lib, \
|
JDK_LIBS_windows := jvm.lib, \
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBVERIFY)
|
TARGETS += $(BUILD_LIBVERIFY)
|
||||||
|
|
||||||
##########################################################################################
|
################################################################################
|
||||||
|
## Build libjava
|
||||||
|
################################################################################
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, macosx), true)
|
ifeq ($(call isTargetOs, macosx), true)
|
||||||
BUILD_LIBJAVA_java_props_md.c_CFLAGS := -x objective-c
|
BUILD_LIBJAVA_java_props_md.c_CFLAGS := -x objective-c
|
||||||
@ -53,26 +55,28 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJAVA, \
|
|||||||
OPTIMIZATION := HIGH, \
|
OPTIMIZATION := HIGH, \
|
||||||
jdk_util.c_CFLAGS := $(VERSION_CFLAGS), \
|
jdk_util.c_CFLAGS := $(VERSION_CFLAGS), \
|
||||||
ProcessImpl_md.c_CFLAGS := $(VERSION_CFLAGS), \
|
ProcessImpl_md.c_CFLAGS := $(VERSION_CFLAGS), \
|
||||||
java_props_md.c_CFLAGS := -DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"', \
|
java_props_md.c_CFLAGS := \
|
||||||
|
-DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"', \
|
||||||
DISABLED_WARNINGS_gcc_ProcessImpl_md.c := unused-result, \
|
DISABLED_WARNINGS_gcc_ProcessImpl_md.c := unused-result, \
|
||||||
LDFLAGS_macosx := -L$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/, \
|
LDFLAGS_macosx := -L$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/, \
|
||||||
LIBS_unix := -ljvm, \
|
JDK_LIBS_unix := -ljvm, \
|
||||||
|
JDK_LIBS_windows := jvm.lib, \
|
||||||
LIBS_linux := $(LIBDL), \
|
LIBS_linux := $(LIBDL), \
|
||||||
LIBS_aix := $(LIBDL) $(LIBM),\
|
LIBS_aix := $(LIBDL) $(LIBM),\
|
||||||
LIBS_macosx := -framework CoreFoundation \
|
LIBS_macosx := \
|
||||||
|
-framework CoreFoundation \
|
||||||
-framework Foundation \
|
-framework Foundation \
|
||||||
-framework SystemConfiguration, \
|
-framework SystemConfiguration, \
|
||||||
LIBS_windows := jvm.lib \
|
LIBS_windows := advapi32.lib ole32.lib shell32.lib version.lib, \
|
||||||
shell32.lib ole32.lib \
|
|
||||||
advapi32.lib version.lib, \
|
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBJAVA)
|
TARGETS += $(BUILD_LIBJAVA)
|
||||||
|
|
||||||
$(BUILD_LIBJAVA): $(BUILD_LIBVERIFY)
|
$(BUILD_LIBJAVA): $(BUILD_LIBVERIFY)
|
||||||
|
|
||||||
|
################################################################################
|
||||||
##########################################################################################
|
## Build libzip
|
||||||
|
################################################################################
|
||||||
|
|
||||||
BUILD_LIBZIP_EXCLUDES :=
|
BUILD_LIBZIP_EXCLUDES :=
|
||||||
ifeq ($(USE_EXTERNAL_LIBZ), true)
|
ifeq ($(USE_EXTERNAL_LIBZ), true)
|
||||||
@ -92,15 +96,18 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBZIP, \
|
|||||||
DISABLED_WARNINGS_gcc_zip_util.c := unused-function, \
|
DISABLED_WARNINGS_gcc_zip_util.c := unused-function, \
|
||||||
DISABLED_WARNINGS_clang := deprecated-non-prototype, \
|
DISABLED_WARNINGS_clang := deprecated-non-prototype, \
|
||||||
DISABLED_WARNINGS_clang_gzwrite.c := format-nonliteral, \
|
DISABLED_WARNINGS_clang_gzwrite.c := format-nonliteral, \
|
||||||
LIBS_unix := -ljvm -ljava $(LIBZ_LIBS), \
|
JDK_LIBS_unix := -ljava -ljvm, \
|
||||||
LIBS_windows := jvm.lib $(WIN_JAVA_LIB), \
|
JDK_LIBS_windows := $(WIN_JAVA_LIB) jvm.lib, \
|
||||||
|
LIBS_unix := $(LIBZ_LIBS), \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(BUILD_LIBZIP): $(BUILD_LIBJAVA)
|
$(BUILD_LIBZIP): $(BUILD_LIBJAVA)
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBZIP)
|
TARGETS += $(BUILD_LIBZIP)
|
||||||
|
|
||||||
##########################################################################################
|
################################################################################
|
||||||
|
## Build libjimage
|
||||||
|
################################################################################
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBJIMAGE, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBJIMAGE, \
|
||||||
NAME := jimage, \
|
NAME := jimage, \
|
||||||
@ -108,15 +115,18 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJIMAGE, \
|
|||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
CFLAGS_unix := -UDEBUG, \
|
CFLAGS_unix := -UDEBUG, \
|
||||||
LDFLAGS := $(LDFLAGS_CXX_JDK), \
|
LDFLAGS := $(LDFLAGS_CXX_JDK), \
|
||||||
LIBS_unix := -ljvm -ldl, \
|
JDK_LIBS_unix := -ljvm, \
|
||||||
LIBS_windows := jvm.lib, \
|
JDK_LIBS_windows := jvm.lib, \
|
||||||
|
LIBS_unix := $(LIBDL), \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(BUILD_LIBJIMAGE): $(BUILD_LIBJAVA)
|
$(BUILD_LIBJIMAGE): $(BUILD_LIBJAVA)
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBJIMAGE)
|
TARGETS += $(BUILD_LIBJIMAGE)
|
||||||
|
|
||||||
##########################################################################################
|
################################################################################
|
||||||
|
## Build libjli
|
||||||
|
################################################################################
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, macosx), true)
|
ifeq ($(call isTargetOs, macosx), true)
|
||||||
LIBJLI_EXCLUDE_FILES += java_md.c
|
LIBJLI_EXCLUDE_FILES += java_md.c
|
||||||
@ -135,11 +145,10 @@ ifeq ($(call isTargetOs, windows), true)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBJLI_CFLAGS += $(LIBZ_CFLAGS)
|
|
||||||
|
|
||||||
ifneq ($(USE_EXTERNAL_LIBZ), true)
|
ifneq ($(USE_EXTERNAL_LIBZ), true)
|
||||||
# Extra files from the zlib.
|
# Extra files from the zlib.
|
||||||
LIBJLI_EXTRA_FILE_LIST := inflate.c inftrees.c inffast.c zadler32.c zcrc32.c zutil.c
|
LIBJLI_EXTRA_FILE_LIST := inflate.c inftrees.c inffast.c zadler32.c \
|
||||||
|
zcrc32.c zutil.c
|
||||||
|
|
||||||
LIBJLI_EXTRA_FILES += \
|
LIBJLI_EXTRA_FILES += \
|
||||||
$(addprefix $(TOPDIR)/src/java.base/share/native/libzip/zlib/, \
|
$(addprefix $(TOPDIR)/src/java.base/share/native/libzip/zlib/, \
|
||||||
@ -150,22 +159,25 @@ ifneq ($(USE_EXTERNAL_LIBZ), true)
|
|||||||
# static libraries, we use the --whole-archive linker option.
|
# static libraries, we use the --whole-archive linker option.
|
||||||
# The duplicate objects in different static libraries cause linking
|
# The duplicate objects in different static libraries cause linking
|
||||||
# errors due to duplicate symbols.
|
# errors due to duplicate symbols.
|
||||||
LIBJLI_STATIC_EXCLUDE_OBJS := $(subst .c,$(OBJ_SUFFIX),$(LIBJLI_EXTRA_FILE_LIST))
|
LIBJLI_STATIC_EXCLUDE_OBJS := \
|
||||||
|
$(subst .c,$(OBJ_SUFFIX),$(LIBJLI_EXTRA_FILE_LIST))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBJLI, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBJLI, \
|
||||||
NAME := jli, \
|
NAME := jli, \
|
||||||
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
|
|
||||||
EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
|
EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
|
||||||
EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
|
EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
|
||||||
OPTIMIZATION := HIGH, \
|
OPTIMIZATION := HIGH, \
|
||||||
CFLAGS := $(LIBJLI_CFLAGS), \
|
CFLAGS := $(LIBJLI_CFLAGS) $(LIBZ_CFLAGS), \
|
||||||
DISABLED_WARNINGS_gcc := unused-function, \
|
DISABLED_WARNINGS_gcc := unused-function, \
|
||||||
DISABLED_WARNINGS_clang := format-nonliteral deprecated-non-prototype, \
|
DISABLED_WARNINGS_clang := format-nonliteral deprecated-non-prototype, \
|
||||||
LIBS_unix := $(LIBZ_LIBS), \
|
LIBS_unix := $(LIBZ_LIBS), \
|
||||||
LIBS_linux := $(LIBDL) -lpthread, \
|
LIBS_linux := $(LIBDL) -lpthread, \
|
||||||
LIBS_aix := $(LIBDL),\
|
LIBS_aix := $(LIBDL),\
|
||||||
LIBS_macosx := -framework Cocoa -framework Security -framework ApplicationServices, \
|
LIBS_macosx := \
|
||||||
|
-framework ApplicationServices \
|
||||||
|
-framework Cocoa \
|
||||||
|
-framework Security, \
|
||||||
LIBS_windows := advapi32.lib comctl32.lib user32.lib, \
|
LIBS_windows := advapi32.lib comctl32.lib user32.lib, \
|
||||||
STATIC_LIB_EXCLUDE_OBJS := $(LIBJLI_STATIC_EXCLUDE_OBJS), \
|
STATIC_LIB_EXCLUDE_OBJS := $(LIBJLI_STATIC_EXCLUDE_OBJS), \
|
||||||
))
|
))
|
||||||
@ -175,7 +187,8 @@ TARGETS += $(BUILD_LIBJLI)
|
|||||||
LIBJLI_SRC_DIRS := $(call FindSrcDirsForComponent, java.base, libjli)
|
LIBJLI_SRC_DIRS := $(call FindSrcDirsForComponent, java.base, libjli)
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, aix), true)
|
ifeq ($(call isTargetOs, aix), true)
|
||||||
# AIX also requires a static libjli because the compiler doesn't support '-rpath'
|
# AIX also requires a static libjli because the compiler doesn't support
|
||||||
|
# '-rpath'
|
||||||
$(eval $(call SetupNativeCompilation, BUILD_LIBJLI_STATIC, \
|
$(eval $(call SetupNativeCompilation, BUILD_LIBJLI_STATIC, \
|
||||||
NAME := jli_static, \
|
NAME := jli_static, \
|
||||||
TYPE := STATIC_LIBRARY, \
|
TYPE := STATIC_LIBRARY, \
|
||||||
@ -185,11 +198,11 @@ ifeq ($(call isTargetOs, aix), true)
|
|||||||
EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
|
EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
|
||||||
OPTIMIZATION := HIGH, \
|
OPTIMIZATION := HIGH, \
|
||||||
CFLAGS := $(STATIC_LIBRARY_FLAGS) $(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS) \
|
CFLAGS := $(STATIC_LIBRARY_FLAGS) $(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS) \
|
||||||
$(addprefix -I, $(LIBJLI_SRC_DIRS)), \
|
$(LIBZ_CFLAGS) (addprefix -I, $(LIBJLI_SRC_DIRS)), \
|
||||||
DISABLED_WARNINGS_clang_aix := format-nonliteral deprecated-non-prototype, \
|
DISABLED_WARNINGS_clang_aix := format-nonliteral \
|
||||||
|
deprecated-non-prototype, \
|
||||||
ARFLAGS := $(ARFLAGS), \
|
ARFLAGS := $(ARFLAGS), \
|
||||||
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static))
|
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBJLI_STATIC)
|
TARGETS += $(BUILD_LIBJLI_STATIC)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user