make/launcher/Launcher-jdk.pack.gmk
changeset 50126 98f57dff16f3
parent 49859 62d18722a58d
child 50514 2a524e603529
child 56687 f0d5c39dfbc1
child 56721 01b558efd286
child 56723 d927981eeb64
child 56726 3a9b7a1f9197
--- a/make/launcher/Launcher-jdk.pack.gmk	Tue May 15 15:36:46 2018 +0200
+++ b/make/launcher/Launcher-jdk.pack.gmk	Thu Apr 26 13:55:16 2018 +0200
@@ -39,6 +39,7 @@
 # On Mac, we have always exported all symbols, probably due to oversight
 # and/or misunderstanding. To emulate this, don't hide any symbols
 # by default.
+# On AIX/xlc we need at least xlc 13.1 for the symbol hiding
 # Also provide an override for non-conformant libraries.
 ifeq ($(TOOLCHAIN_TYPE), gcc)
   CXXFLAGS_JDKEXE += -fvisibility=hidden
@@ -50,7 +51,9 @@
 else ifeq ($(TOOLCHAIN_TYPE), solstudio)
   CXXFLAGS_JDKEXE += -xldscope=hidden
 else ifeq ($(TOOLCHAIN_TYPE), xlc)
-  CXXFLAGS_JDKEXE += -qvisibility=hidden
+  ifneq ($(CC_VERSION_NUMBER), 12.1)
+    CXXFLAGS_JDKEXE += -qvisibility=hidden
+  endif
 endif
 
 UNPACKEXE_SRC := $(TOPDIR)/src/jdk.pack/share/native/common-unpack \