Blame jdk8073139-pr1758-rh1191652-ppc64_le_says_its_arch_is_ppc64_not_ppc64le_root.patch
|
Alex Kashchenko |
af80df1 |
# HG changeset patch
|
|
Alex Kashchenko |
af80df1 |
# User asmundak
|
|
Alex Kashchenko |
af80df1 |
# Date 1537883922 -7200
|
|
Alex Kashchenko |
af80df1 |
# Tue Sep 25 15:58:42 2018 +0200
|
|
Alex Kashchenko |
af80df1 |
# Node ID 2fabe07c0bd8bf21400313f3bb9b8e80fcb31724
|
|
Alex Kashchenko |
af80df1 |
# Parent 91867683f73de3882ef88981a79995beeeb1e980
|
|
Alex Kashchenko |
af80df1 |
8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
|
|
Alex Kashchenko |
af80df1 |
Reviewed-by: erikj, goetz, dholmes
|
|
Alex Kashchenko |
af80df1 |
Contributed-by: Andrew Hughes <gnu.andrew@redhat.com>, Alexander Smundak <asmundak@google.com>
|
|
Alex Kashchenko |
af80df1 |
|
|
Alex Kashchenko |
af80df1 |
diff --git openjdk.orig///common/autoconf/flags.m4 openjdk///common/autoconf/flags.m4
|
|
Alex Kashchenko |
af80df1 |
--- openjdk.orig///common/autoconf/flags.m4
|
|
Alex Kashchenko |
af80df1 |
+++ openjdk///common/autoconf/flags.m4
|
|
Alex Kashchenko |
af80df1 |
@@ -549,6 +549,9 @@
|
|
Alex Kashchenko |
af80df1 |
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
|
|
Alex Kashchenko |
af80df1 |
fi
|
|
Alex Kashchenko |
af80df1 |
fi
|
|
Alex Kashchenko |
af80df1 |
+ if test "x$OPENJDK_TARGET_CPU" = xppc64le; then
|
|
Alex Kashchenko |
af80df1 |
+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2"
|
|
Alex Kashchenko |
af80df1 |
+ fi
|
|
Alex Kashchenko |
af80df1 |
|
|
Alex Kashchenko |
af80df1 |
# Setup target OS define. Use OS target name but in upper case.
|
|
Alex Kashchenko |
af80df1 |
OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
Alex Kashchenko |
af80df1 |
diff --git openjdk.orig///common/autoconf/jdk-options.m4 openjdk///common/autoconf/jdk-options.m4
|
|
Alex Kashchenko |
af80df1 |
--- openjdk.orig///common/autoconf/jdk-options.m4
|
|
Alex Kashchenko |
af80df1 |
+++ openjdk///common/autoconf/jdk-options.m4
|
|
Alex Kashchenko |
af80df1 |
@@ -158,7 +158,7 @@
|
|
Alex Kashchenko |
af80df1 |
if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
|
|
Alex Kashchenko |
af80df1 |
INCLUDE_SA=false
|
|
Alex Kashchenko |
af80df1 |
fi
|
|
Alex Kashchenko |
af80df1 |
- if test "x$VAR_CPU" = xppc64 ; then
|
|
Alex Kashchenko |
af80df1 |
+ if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
|
|
Alex Kashchenko |
af80df1 |
INCLUDE_SA=false
|
|
Alex Kashchenko |
af80df1 |
fi
|
|
Alex Kashchenko |
af80df1 |
AC_SUBST(INCLUDE_SA)
|
|
Alex Kashchenko |
af80df1 |
diff --git openjdk.orig///common/autoconf/platform.m4 openjdk///common/autoconf/platform.m4
|
|
Alex Kashchenko |
af80df1 |
--- openjdk.orig///common/autoconf/platform.m4
|
|
Alex Kashchenko |
af80df1 |
+++ openjdk///common/autoconf/platform.m4
|
|
Alex Kashchenko |
af80df1 |
@@ -67,7 +67,7 @@
|
|
Alex Kashchenko |
af80df1 |
VAR_CPU_ENDIAN=big
|
|
Alex Kashchenko |
af80df1 |
;;
|
|
Alex Kashchenko |
af80df1 |
powerpc64le)
|
|
Alex Kashchenko |
af80df1 |
- VAR_CPU=ppc64
|
|
Alex Kashchenko |
af80df1 |
+ VAR_CPU=ppc64le
|
|
Alex Kashchenko |
af80df1 |
VAR_CPU_ARCH=ppc
|
|
Alex Kashchenko |
af80df1 |
VAR_CPU_BITS=64
|
|
Alex Kashchenko |
af80df1 |
VAR_CPU_ENDIAN=little
|