$NetBSD$ Support SunOS/gcc. --- a/make/common/modules/LibCommon.gmk.orig 2019-01-08 09:40:28.000000000 +0000 +++ b/make/common/modules/LibCommon.gmk @@ -40,7 +40,9 @@ WIN_JAVA_LIB := $(SUPPORT_OUTPUTDIR)/nat ifeq ($(TOOLCHAIN_TYPE), gcc) CFLAGS_JDKLIB += -fvisibility=hidden CXXFLAGS_JDKLIB += -fvisibility=hidden + ifneq ($(OPENJDK_TARGET_OS), solaris) LDFLAGS_JDKLIB += -Wl,--exclude-libs,ALL + endif else ifeq ($(TOOLCHAIN_TYPE), clang) CFLAGS_JDKLIB += -fvisibility=hidden CXXFLAGS_JDKLIB += -fvisibility=hidden