summaryrefslogtreecommitdiff
path: root/lang/gcc48
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2007-04-09 18:34:53 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2007-04-09 18:34:53 +0000
commit9e57664e46e928510784c7a4c4388db5a2394d9f (patch)
tree7ba87f68c710caeab0ab3ce7456055d58625efc5 /lang/gcc48
parent- Add entry for games/bos -> games/boswars (project name changed). (diff)
Check for, and warn about the datasize limit, before trying to build
with Java support. PR: 111126 Suggested by: kris, cperciva
Notes
Notes: svn path=/head/; revision=189593
Diffstat (limited to 'lang/gcc48')
-rw-r--r--lang/gcc48/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile
index 6c7f511cc2f2..dd905e8a54bd 100644
--- a/lang/gcc48/Makefile
+++ b/lang/gcc48/Makefile
@@ -135,6 +135,15 @@ PLIST_SUB+= JAVA="@comment "
pre-everything::
@${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}"
+.if ! defined(WITHOUT_JAVA)
+ @DSIZ=700000; DSIZBYTE=734003200; \
+ if [ `ulimit -d` -lt $$DSIZ ]; then \
+ echo "You need to increase the datasize limit to at least $$DSIZ \
+ (and set kern.maxdsiz=\"$$DSIZBYTE\" in /boot/loader.conf) to \
+ build with Java support." | ${FMT} -s; \
+ exit 1; \
+ fi
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \