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

045ef6
# HG changeset patch
045ef6
# User andrew
045ef6
# Date 1424102734 0
045ef6
#      Mon Feb 16 16:05:34 2015 +0000
045ef6
# Node ID 4fdaf786d977aa77afdb68b8829579d31069e39c
045ef6
# Parent  01a0011cc101f3308c5876db8282c0fc5e3ba2e6
045ef6
PR2236: ppc64le should report its os.arch as ppc64le so tools can detect it
045ef6
Summary: Use ppc64le as the arch directory on that platform and report it in os.arch
045ef6
045ef6
--- openjdk/hotspot/make/defs.make.orig	2015-03-03 17:05:51.000000000 -0500
045ef6
+++ openjdk/hotspot/make/defs.make	2015-03-03 19:18:20.000000000 -0500
045ef6
@@ -319,6 +319,13 @@
045ef6
   LIBARCH/ppc64   = ppc64
045ef6
   LIBARCH/zero    = $(ZERO_LIBARCH)
045ef6
 
045ef6
+  # Override LIBARCH for ppc64le
045ef6
+  ifeq ($(ARCH), ppc64)
045ef6
+    ifeq ($(OPENJDK_TARGET_CPU_ENDIAN), little)
045ef6
+      LIBARCH = ppc64le
045ef6
+    endif
045ef6
+  endif
045ef6
+
045ef6
   LP64_ARCH += sparcv9 amd64 ia64 ppc64 aarch64 zero
045ef6
 endif
045ef6