8136690: AIX: libjimage should be linked with the C++ compiler
authorsimonis
Thu, 17 Sep 2015 18:04:53 +0200
changeset 32654 23ae9cdf149e
parent 32653 74f43cd059ec
child 32655 8dfeae0ff332
child 32658 dc687d3e31ab
8136690: AIX: libjimage should be linked with the C++ compiler Reviewed-by: ihse
jdk/make/lib/CoreLibraries.gmk
--- a/jdk/make/lib/CoreLibraries.gmk	Wed Sep 16 10:49:11 2015 -0700
+++ b/jdk/make/lib/CoreLibraries.gmk	Thu Sep 17 18:04:53 2015 +0200
@@ -239,8 +239,13 @@
 
 ##########################################################################################
 
+ifeq ($(OPENJDK_TARGET_OS), aix)
+  LIBJIMAGE_TOOLCHAIN := TOOLCHAIN_LINK_CXX
+endif # OPENJDK_TARGET_OS aix
+
 $(eval $(call SetupNativeCompilation,BUILD_LIBJIMAGE, \
     LIBRARY := jimage, \
+    TOOLCHAIN := $(LIBJIMAGE_TOOLCHAIN), \
     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
     OPTIMIZATION := LOW, \
     SRC := $(JDK_TOPDIR)/src/java.base/share/native/libjimage \