提交 c1eb9665 编写于 作者: K kevinw

8211933: [8u] hotspot adlc needs to link statically with libstdc++ for gcc7.3

Reviewed-by: erikj
上级 0bb98b6c
......@@ -105,9 +105,15 @@ GENERATEDFILES = $(GENERATEDNAMES:%=$(OUTDIR)/%)
all: $(EXEC)
ADLC_LD_FLAGS=
ifeq ($(STATIC_CXX), true)
ADLC_LD_FLAGS = $(STATIC_LIBGCC) $(ADLC_STATIC_STDCXX)
endif
$(EXEC) : $(OBJECTS)
@echo Making adlc
$(QUIETLY) $(filter-out $(ARCHFLAG),$(HOST.LINK_NOPROF.CXX)) -o $(EXEC) $(OBJECTS)
$(QUIETLY) $(filter-out $(ARCHFLAG),$(HOST.LINK_NOPROF.CXX)) $(ADLC_LD_FLAGS) -o $(EXEC) $(OBJECTS)
# Random dependencies:
$(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp
......
......@@ -277,6 +277,8 @@ endif
# statically link libstdc++.so, work with gcc but ignored by g++
STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
# While the VM needs the above line, adlc needs a separate setting:
ADLC_STATIC_STDCXX = -static-libstdc++
ifeq ($(USE_CLANG),)
# statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册