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

d934b5
diff -r 9d6eb2757167 make/defs.make
d934b5
--- openjdk/hotspot/make/defs.make	Wed Feb 11 18:56:26 2015 -0800
d934b5
+++ openjdk/hotspot/make/defs.make	Tue Feb 17 16:39:22 2015 +0000
d934b5
@@ -317,6 +317,13 @@
d934b5
   LIBARCH/arm     = arm
d934b5
   LIBARCH/zero    = $(ZERO_LIBARCH)
d934b5
 
d934b5
+  # Override LIBARCH for ppc64le
d934b5
+  ifeq ($(ARCH), ppc64)
d934b5
+    ifeq ($(OPENJDK_TARGET_CPU_ENDIAN), little)
d934b5
+      LIBARCH = ppc64le
d934b5
+    endif
d934b5
+  endif
d934b5
+
d934b5
   LP64_ARCH = sparcv9 amd64 ia64 ppc64 zero
d934b5
 endif
d934b5
 
d934b5
diff -r 9d6eb2757167 src/os/linux/vm/os_linux.cpp
d934b5
--- openjdk/hotspot/src/os/linux/vm/os_linux.cpp	Wed Feb 11 18:56:26 2015 -0800
d934b5
+++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp	Tue Feb 17 16:39:22 2015 +0000
d934b5
@@ -265,7 +265,11 @@
d934b5
 #elif defined(PPC32)
d934b5
 static char cpu_arch[] = "ppc";
d934b5
 #elif defined(PPC64)
d934b5
+#if defined(VM_LITTLE_ENDIAN)
d934b5
+static char cpu_arch[] = "ppc64le";
d934b5
+#else
d934b5
 static char cpu_arch[] = "ppc64";
d934b5
+#endif
d934b5
 #elif defined(SPARC)
d934b5
 #  ifdef _LP64
d934b5
 static char cpu_arch[] = "sparcv9";