Blame SOURCES/java-1.8.0-openjdk-rh1191652-root.patch

d934b5
diff -r 590cc3ca1fec common/autoconf/hotspot-spec.gmk.in
d934b5
--- openjdk///common/autoconf/hotspot-spec.gmk.in	Wed Feb 11 12:18:34 2015 -0800
d934b5
+++ openjdk///common/autoconf/hotspot-spec.gmk.in	Wed Feb 18 12:10:19 2015 +0000
d934b5
@@ -71,6 +71,10 @@
d934b5
 LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
d934b5
 # Old name for OPENJDK_TARGET_CPU, uses i586 and amd64, instead of x86 and x86_64.
d934b5
 ARCH=$(OPENJDK_TARGET_CPU_LEGACY)
d934b5
+# ppc64le uses the HotSpot ppc64 build
d934b5
+ifeq ($(OPENJDK_TARGET_CPU), ppc64le)
d934b5
+  ARCH=ppc64
d934b5
+endif
d934b5
 # Legacy setting for building for a 64 bit machine.
d934b5
 # If yes then this expands to _LP64:=1
d934b5
 @LP64@
d934b5
--- openjdk/common/autoconf/jdk-options.m4.orig	2015-03-03 20:13:00.000000000 -0500
d934b5
+++ openjdk/common/autoconf/jdk-options.m4	2015-03-03 20:36:17.000000000 -0500
d934b5
@@ -153,7 +153,7 @@
d934b5
   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
d934b5
     INCLUDE_SA=false
d934b5
   fi
d934b5
-  if test "x$VAR_CPU" = xppc64 ; then
d934b5
+  if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
d934b5
     INCLUDE_SA=false
d934b5
   fi
d934b5
   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
d934b5
diff -r 590cc3ca1fec common/autoconf/platform.m4
d934b5
--- openjdk///common/autoconf/platform.m4	Wed Feb 11 12:18:34 2015 -0800
d934b5
+++ openjdk///common/autoconf/platform.m4	Wed Feb 18 12:10:19 2015 +0000
d934b5
@@ -61,7 +61,7 @@
d934b5
       VAR_CPU_ENDIAN=big
d934b5
       ;;
d934b5
     powerpc64le)
d934b5
-      VAR_CPU=ppc64
d934b5
+      VAR_CPU=ppc64le
d934b5
       VAR_CPU_ARCH=ppc
d934b5
       VAR_CPU_BITS=64
d934b5
       VAR_CPU_ENDIAN=little
d934b5
diff -r 590cc3ca1fec common/autoconf/toolchain.m4
d934b5
--- openjdk///common/autoconf/toolchain.m4	Wed Feb 11 12:18:34 2015 -0800
d934b5
+++ openjdk///common/autoconf/toolchain.m4	Wed Feb 18 12:10:19 2015 +0000
d934b5
@@ -1056,6 +1056,9 @@
d934b5
   else
d934b5
     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
d934b5
   fi
d934b5
+  if test "x$OPENJDK_TARGET_CPU" = xppc64le; then
d934b5
+    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2"
d934b5
+  fi
d934b5
   if test "x$OPENJDK_TARGET_OS" = xlinux; then
d934b5
     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
d934b5
   fi