diff options
author | glewis <glewis@FreeBSD.org> | 2003-08-30 23:33:23 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-08-30 23:33:23 +0800 |
commit | d1c28ebb550f4ab9e269f53d4fe37c1131dec702 (patch) | |
tree | 060293d82c901266eac9882bbb4086fbad876869 /java/jdk13 | |
parent | 878c08da65b24173735b05dd5e43fdef83b18a1a (diff) | |
download | freebsd-ports-gnome-d1c28ebb550f4ab9e269f53d4fe37c1131dec702.tar.gz freebsd-ports-gnome-d1c28ebb550f4ab9e269f53d4fe37c1131dec702.tar.zst freebsd-ports-gnome-d1c28ebb550f4ab9e269f53d4fe37c1131dec702.zip |
. Check for a setting of "-mcpu=k6" in CFLAGS and error if so. This
setting will cause an internal compiler error in gcc 2.95.x when
compiling the JDK.
PR: 46269
Submitted by: Simon Barner <barner@in.tum.de>
Diffstat (limited to 'java/jdk13')
-rw-r--r-- | java/jdk13/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile index c6d781556c97..6210efa1c69a 100644 --- a/java/jdk13/Makefile +++ b/java/jdk13/Makefile @@ -196,9 +196,9 @@ post-patch: .endif .endif -.if defined(WITH_LINUX_BOOTSTRAP) -# Some checks for bootstrapping with a Linux JDK pre-build: +.if defined(WITH_LINUX_BOOTSTRAP) + # Some checks for bootstrapping with a Linux JDK @if [ `${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check_wrkdir_links.sh "${WRKDIRPREFIX}" "${LINUXBASE}" 2>/dev/null` ]; \ then \ ${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \ @@ -216,6 +216,13 @@ pre-build: exit 1; \ fi .endif + @if [ "${CFLAGS:S/mcpu=k6//}" != "${CFLAGS:S///}" -a \ + "`${CC} -dumpversion`" \< "3" ]; \ + then \ + ${ECHO_MSG} "Please remove the -mcpu=k6 option from CFLAGS as this triggers"; \ + ${ECHO_MSG} "an internal compiler in GCC 2.95.x when compiling JDK ${JDK_VERSION}."; \ + exit 1; \ + fi do-build: # Start of jdk build |