jdk/make/lib/CoreLibraries.gmk
changeset 32654 23ae9cdf149e
parent 32758 f443e49794a4
child 34006 d5514a103cce
child 32846 5383225ebd0d
--- 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 \