summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/gcc/Makefile9
-rw-r--r--lang/gcc43/Makefile9
-rw-r--r--lang/gcc44/Makefile9
-rw-r--r--lang/gcc45/Makefile9
-rw-r--r--lang/gcc46/Makefile9
-rw-r--r--lang/gcc47/Makefile9
-rw-r--r--lang/gcc48/Makefile9
7 files changed, 63 insertions, 0 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index 6c7f511cc2f2..dd905e8a54bd 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/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]";|' \
diff --git a/lang/gcc43/Makefile b/lang/gcc43/Makefile
index 6c7f511cc2f2..dd905e8a54bd 100644
--- a/lang/gcc43/Makefile
+++ b/lang/gcc43/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]";|' \
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile
index 6c7f511cc2f2..dd905e8a54bd 100644
--- a/lang/gcc44/Makefile
+++ b/lang/gcc44/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]";|' \
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index 6c7f511cc2f2..dd905e8a54bd 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/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]";|' \
diff --git a/lang/gcc46/Makefile b/lang/gcc46/Makefile
index 6c7f511cc2f2..dd905e8a54bd 100644
--- a/lang/gcc46/Makefile
+++ b/lang/gcc46/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]";|' \
diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile
index 6c7f511cc2f2..dd905e8a54bd 100644
--- a/lang/gcc47/Makefile
+++ b/lang/gcc47/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]";|' \
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]";|' \