make/defs.make

Print this page
rev 9494 : 8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
Contributed-by: Andrew Hughes gnu.andrew@redhat.com

@@ -316,12 +316,16 @@
     ifdef LP64
       BUILDARCH = ppc64
     endif
   endif
 
-  # LIBARCH is 1:1 mapping from BUILDARCH
+  # LIBARCH is 1:1 mapping from BUILDARCH, except for PPC64LE:
+  ifeq ($(ARCH)-$(OPENJDK_TARGET_CPU_ENDIAN),ppc64-little)
+    LIBARCH      ?= ppc64le
+  else
   LIBARCH        ?= $(LIBARCH/$(BUILDARCH))
+  endif
   LIBARCH/i486    = i386
   LIBARCH/amd64   = amd64
   LIBARCH/sparc   = sparc
   LIBARCH/sparcv9 = sparcv9
   LIBARCH/ia64    = ia64