2017-10-25 14:10:28 +00:00
|
|
|
diff --git a/common/autoconf/hotspot-spec.gmk.in b/common/autoconf/hotspot-spec.gmk.in
|
|
|
|
--- openjdk///common/autoconf/hotspot-spec.gmk.in
|
|
|
|
+++ openjdk///common/autoconf/hotspot-spec.gmk.in
|
2015-07-20 19:05:32 +00:00
|
|
|
@@ -71,6 +71,10 @@
|
|
|
|
LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
|
2016-06-08 16:33:19 +00:00
|
|
|
# Set the cpu architecture
|
|
|
|
ARCH=$(OPENJDK_TARGET_CPU_ARCH)
|
2015-07-20 19:05:32 +00:00
|
|
|
+# ppc64le uses the HotSpot ppc64 build
|
|
|
|
+ifeq ($(OPENJDK_TARGET_CPU), ppc64le)
|
|
|
|
+ ARCH=ppc64
|
|
|
|
+endif
|
|
|
|
# Legacy setting for building for a 64 bit machine.
|
|
|
|
# If yes then this expands to _LP64:=1
|
|
|
|
@LP64@
|
2017-10-25 14:10:28 +00:00
|
|
|
diff --git a/common/autoconf/jdk-options.m4 b/common/autoconf/jdk-options.m4
|
|
|
|
--- openjdk///common/autoconf/jdk-options.m4
|
|
|
|
+++ openjdk///common/autoconf/jdk-options.m4
|
2016-06-08 16:33:19 +00:00
|
|
|
@@ -158,7 +158,7 @@
|
2015-07-20 19:05:32 +00:00
|
|
|
if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
|
|
|
|
INCLUDE_SA=false
|
|
|
|
fi
|
|
|
|
- if test "x$VAR_CPU" = xppc64 ; then
|
|
|
|
+ if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
|
|
|
|
INCLUDE_SA=false
|
|
|
|
fi
|
|
|
|
if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
|
2017-10-25 14:10:28 +00:00
|
|
|
diff --git a/common/autoconf/platform.m4 b/common/autoconf/platform.m4
|
|
|
|
--- openjdk///common/autoconf/platform.m4
|
|
|
|
+++ openjdk///common/autoconf/platform.m4
|
2016-06-08 16:33:19 +00:00
|
|
|
@@ -67,7 +67,7 @@
|
2015-07-20 19:05:32 +00:00
|
|
|
VAR_CPU_ENDIAN=big
|
|
|
|
;;
|
|
|
|
powerpc64le)
|
|
|
|
- VAR_CPU=ppc64
|
|
|
|
+ VAR_CPU=ppc64le
|
|
|
|
VAR_CPU_ARCH=ppc
|
|
|
|
VAR_CPU_BITS=64
|
|
|
|
VAR_CPU_ENDIAN=little
|
2017-10-25 14:10:28 +00:00
|
|
|
diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4
|
|
|
|
--- openjdk///common/autoconf/toolchain.m4
|
|
|
|
+++ openjdk///common/autoconf/toolchain.m4
|
|
|
|
@@ -1123,6 +1123,9 @@
|
2015-07-20 19:05:32 +00:00
|
|
|
else
|
2017-10-25 14:10:28 +00:00
|
|
|
COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN"
|
2015-07-20 19:05:32 +00:00
|
|
|
fi
|
|
|
|
+ if test "x$OPENJDK_TARGET_CPU" = xppc64le; then
|
2017-10-25 14:10:28 +00:00
|
|
|
+ COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DABI_ELFv2"
|
2015-07-20 19:05:32 +00:00
|
|
|
+ fi
|
|
|
|
if test "x$OPENJDK_TARGET_OS" = xlinux; then
|
2017-10-25 14:10:28 +00:00
|
|
|
COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DLINUX"
|
2015-07-20 19:05:32 +00:00
|
|
|
fi
|