File openjdk-libjvm-link-ecj.patch of Package java-1_6_0-openjdk

--- openjdk-ecj/hotspot/make/linux/makefiles/vm.make	2016-12-30 05:31:09.000000000 +0100
+++ openjdk-ecj/hotspot/make/linux/makefiles/vm.make	2017-06-21 10:06:39.029529369 +0200
@@ -282,7 +282,7 @@
   LIBS_VM   += $(LLVM_LIBS)
 endif
 
-LINK_VM = $(LINK_LIB.CC)
+LINK_VM = $(LINK_LIB.CXX)
 
 # rule for building precompiled header
 $(PRECOMPILED_HEADER):
--- openjdk-ecj/jdk/make/sun/awt/mawt.gmk	2016-12-30 05:30:26.000000000 +0100
+++ openjdk-ecj/jdk/make/sun/awt/mawt.gmk	2017-06-21 10:06:39.029529369 +0200
@@ -87,6 +87,8 @@
 #   are found at runtime.
 LD_RUNPATH_EXTRAS = ..
 
+CPLUSPLUSLIBRARY=yes
+
 include $(BUILDDIR)/common/Mapfile-vers.gmk
 include $(BUILDDIR)/common/Library.gmk
openSUSE Build Service is sponsored by