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