Projects
home:dingli:branches:openEuler:24.09-openjdk
openjdk-1.8.0
_service:tar_scm:Huawei-Fix-build-failures-due-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:Huawei-Fix-build-failures-due-to-wrap-in-x86.patch of Package openjdk-1.8.0
Subject: Fix build failures due to wrap in x86 --- hotspot/make/linux/makefiles/adlc.make | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/hotspot/make/linux/makefiles/adlc.make b/hotspot/make/linux/makefiles/adlc.make index a01aa1aaa..92728fbe7 100644 --- a/hotspot/make/linux/makefiles/adlc.make +++ b/hotspot/make/linux/makefiles/adlc.make @@ -70,8 +70,26 @@ CFLAGS_WARN = $(WARNINGS_ARE_ERRORS) CFLAGS += $(CFLAGS_WARN) # Extra flags from gnumake's invocation or environment +# Adapt wrap for JDK-8281096:Flags introduced by configure script are not passed to ADLC build +WRAP_STR := -Wl,--wrap +WRAP_MEM := ,--wrap=memcpy +WRAP_NULL := +WRAP_LIBPTHREAD := libpthread.so.0 +WRAP_LIBDL := libdl.so.2 +WRAP_LM := -lm +HOST_LDFLAGS_ADOPT_WRAP := $(HOST_LDFLAGS) + +ifeq ($(findstring --wrap=,$(HOST_LDFLAGS)),--wrap=) + HOST_LDFLAGS_ADOPT_WRAP := $(subst $(WRAP_MEM),$(WRAP_NULL),$(HOST_LDFLAGS_ADOPT_WRAP)) + HOST_LDFLAGS_ADOPT_WRAP := $(subst $(WRAP_LIBPTHREAD),$(WRAP_NULL),$(HOST_LDFLAGS_ADOPT_WRAP)) + HOST_LDFLAGS_ADOPT_WRAP := $(subst $(WRAP_LIBDL),$(WRAP_NULL),$(HOST_LDFLAGS_ADOPT_WRAP)) + HOST_LDFLAGS_ADOPT_WRAP := $(subst $(WRAP_LM),$(WRAP_NULL),$(HOST_LDFLAGS_ADOPT_WRAP)) + FILTERED_WRAP := $(filter $(WRAP_STR)%,$(HOST_LDFLAGS_ADOPT_WRAP)) + HOST_LDFLAGS_ADOPT_WRAP := $(patsubst %$(FILTERED_WRAP),$(WRAP_NULL),$(HOST_LDFLAGS_ADOPT_WRAP)) +endif + CFLAGS += $(HOST_CFLAGS) -LFLAGS += $(HOST_CFLAGS) $(HOST_LDFLAGS) +LFLAGS += $(HOST_CFLAGS) $(HOST_LDFLAGS_ADOPT_WRAP) ASFLAGS += $(HOST_ASFLAGS) OBJECTNAMES = \ -- 2.37.7
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2