$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 @@ -41,8 +41,10 @@ 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 EXPORT_ALL_SYMBOLS := -fvisibility=default + endif else ifeq ($(TOOLCHAIN_TYPE), clang) CFLAGS_JDKLIB += -fvisibility=hidden CXXFLAGS_JDKLIB += -fvisibility=hidden