mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8164120: The minimal VM should be stripped using --strip-unneeded
Reviewed-by: ihse, tbell, bobv
This commit is contained in:
parent
b3bc0ad042
commit
49649f11df
2 changed files with 10 additions and 0 deletions
|
@ -190,6 +190,11 @@ endif
|
||||||
|
|
||||||
JVM_OPTIMIZATION ?= HIGHEST_JVM
|
JVM_OPTIMIZATION ?= HIGHEST_JVM
|
||||||
|
|
||||||
|
# Need to set JVM_STRIPFLAGS to the default value from SPEC since the STRIPFLAGS
|
||||||
|
# parameter to SetupNativeCompilation allows an empty value to override the
|
||||||
|
# default.
|
||||||
|
JVM_STRIPFLAGS ?= $(STRIPFLAGS)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Now set up the actual compilation of the main hotspot native library
|
# Now set up the actual compilation of the main hotspot native library
|
||||||
|
|
||||||
|
@ -219,6 +224,7 @@ $(eval $(call SetupNativeCompilation, BUILD_LIBJVM, \
|
||||||
MAPFILE := $(JVM_MAPFILE), \
|
MAPFILE := $(JVM_MAPFILE), \
|
||||||
USE_MAPFILE_FOR_SYMBOLS := true, \
|
USE_MAPFILE_FOR_SYMBOLS := true, \
|
||||||
STRIP_SYMBOLS := $(JVM_STRIP_SYMBOLS), \
|
STRIP_SYMBOLS := $(JVM_STRIP_SYMBOLS), \
|
||||||
|
STRIPFLAGS := $(JVM_STRIPFLAGS), \
|
||||||
EMBED_MANIFEST := true, \
|
EMBED_MANIFEST := true, \
|
||||||
RC_FLAGS := $(JVM_RCFLAGS), \
|
RC_FLAGS := $(JVM_RCFLAGS), \
|
||||||
VERSIONINFO_RESOURCE := $(HOTSPOT_TOPDIR)/src/os/windows/vm/version.rc, \
|
VERSIONINFO_RESOURCE := $(HOTSPOT_TOPDIR)/src/os/windows/vm/version.rc, \
|
||||||
|
|
|
@ -59,6 +59,10 @@ endif
|
||||||
|
|
||||||
ifeq ($(call check-jvm-feature, minimal), true)
|
ifeq ($(call check-jvm-feature, minimal), true)
|
||||||
JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
|
JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
|
||||||
|
ifeq ($(OPENJDK_TARGET_OS), linux)
|
||||||
|
# Override the default -g with a more liberal strip policy for the minimal JVM
|
||||||
|
JVM_STRIPFLAGS := --strip-unneeded
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(call check-jvm-feature, dtrace), true)
|
ifeq ($(call check-jvm-feature, dtrace), true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue