$NetBSD$ Support SunOS/gcc. --- a/make/lib/LibCommon.gmk.orig 2019-01-08 09:40:28.000000000 +0000 +++ b/make/lib/LibCommon.gmk @@ -43,8 +43,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) ifneq ($(OPENJDK_TARGET_OS), macosx) CFLAGS_JDKLIB += -fvisibility=hidden