aboutsummaryrefslogtreecommitdiff
path: root/java/jdk15/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2002-06-27 05:34:39 +0000
committerGreg Lewis <glewis@FreeBSD.org>2002-06-27 05:34:39 +0000
commitb9de798e03f412647d850e8fc293c67d41437f1e (patch)
tree3a937da8071db20ce65311fe3162993b28b5e09b /java/jdk15/Makefile
parent92075db4a4675d002b6187205d7dd4f27788363d (diff)
downloadports-b9de798e03f412647d850e8fc293c67d41437f1e.tar.gz
ports-b9de798e03f412647d850e8fc293c67d41437f1e.zip
Add a pre-build target to check for a setting of WRKDIRPREFIX which will
result in the InvokerGen.java target failing. The bootstrapping Linux JDK will confuse itself if WRKDIRPREFIX also exists in /compat/linux as a symbolic link to the directory in the standard FreeBSD hierarchy. Much appreciated sleuth work by: dillon
Notes
Notes: svn path=/head/; revision=62075
Diffstat (limited to 'java/jdk15/Makefile')
-rw-r--r--java/jdk15/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index 3ace31bc864f..aca08da79be3 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -117,6 +117,19 @@ pre-patch:
${MKDIR} hotspot1.3.1/src/os_cpu/bsd_i486/vm && \
${PATCH} < ${WRKDIR}/jdk131.patches
+.if !defined(NATIVE_BOOTSTRAP)
+pre-build:
+ @if [ "$${WRKDIRPREFIX}" -a \
+ -L "/compat/linux/$${WRKDIRPREFIX}" -a \
+ x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
+ then \
+ echo "Please set WRKDIRPREFIX to something which doesn't"; \
+ echo "have a matching symbolic link in /compat/linux."; \
+ echo "This is known to cause problems during bootstrapping."; \
+ exit 1; \
+ fi
+.endif
+
post-build:
# Prune empty dirs
${FIND} ${JDKIMAGEDIR} -type d | ${SORT} -r | \