. When upgrading to 8u192 the endianess definitions specific to BSD were
missed during a large merge of the configuration file. This resulted in, at least, macros affecting maths operations using the big endian rather than the little endian versions. PR: 234689
This commit is contained in:
parent
7d49a9498e
commit
d82ababf17
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492485
2 changed files with 45 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= openjdk
|
||||
PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//}
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}/promoted/b${DIST_BUILD_NUMBER}/:jdk \
|
||||
https://adopt-openjdk.ci.cloudbees.com/job/jtreg/${JTREG_JENKINS_BUILD}/artifact/:jtreg \
|
||||
|
|
44
java/openjdk8/files/patch-endian
Normal file
44
java/openjdk8/files/patch-endian
Normal file
|
@ -0,0 +1,44 @@
|
|||
--- common/autoconf/flags.m4 Fri Feb 08 17:57:16 2019 -0800
|
||||
+++ common/autoconf/flags.m4 Fri Feb 08 22:49:40 2019 -0800
|
||||
@@ -548,6 +548,9 @@
|
||||
else
|
||||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
|
||||
fi
|
||||
+ if test "x$OPENJDK_TARGET_OS" = xbsd; then
|
||||
+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_LITTLE_ENDIAN"
|
||||
+ fi
|
||||
else
|
||||
# Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they
|
||||
# are defined in the system?
|
||||
@@ -556,6 +559,9 @@
|
||||
else
|
||||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
|
||||
fi
|
||||
+ if test "x$OPENJDK_TARGET_OS" = xbsd; then
|
||||
+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN"
|
||||
+ fi
|
||||
fi
|
||||
if test "x$OPENJDK_TARGET_CPU" = xppc64le; then
|
||||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2"
|
||||
--- common/autoconf/generated-configure.sh Fri Feb 08 17:57:16 2019 -0800
|
||||
+++ common/autoconf/generated-configure.sh Fri Feb 08 22:49:40 2019 -0800
|
||||
@@ -41879,6 +41879,9 @@
|
||||
else
|
||||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
|
||||
fi
|
||||
+ if test "x$OPENJDK_TARGET_OS" = xbsd; then
|
||||
+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_LITTLE_ENDIAN"
|
||||
+ fi
|
||||
else
|
||||
# Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they
|
||||
# are defined in the system?
|
||||
@@ -41887,6 +41890,9 @@
|
||||
else
|
||||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
|
||||
fi
|
||||
+ if test "x$OPENJDK_TARGET_OS" = xbsd; then
|
||||
+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN"
|
||||
+ fi
|
||||
fi
|
||||
if test "x$OPENJDK_TARGET_CPU" = xppc64le; then
|
||||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2"
|
Loading…
Reference in a new issue