summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-05-14 09:31:17 +0000
committertron <tron@pkgsrc.org>2004-05-14 09:31:17 +0000
commit1e7d1efbcd5408854d93dd649b21ce445fecd673 (patch)
tree57989fa6498c0bcd96e86daeb2dbc77cf56136dc /mail
parentf32d1da70f5c17c9d598ff0dc01ab11250754bcc (diff)
downloadpkgsrc-1e7d1efbcd5408854d93dd649b21ce445fecd673.tar.gz
Unlimit datasize when building with GCC 3.x because the compiler might
otherwise fail to allocate enough memory.
Diffstat (limited to 'mail')
-rw-r--r--mail/pine/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/mail/pine/Makefile b/mail/pine/Makefile
index a74f432c97e..d5016fced65 100644
--- a/mail/pine/Makefile
+++ b/mail/pine/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2004/05/13 18:29:54 adam Exp $
+# $NetBSD: Makefile,v 1.89 2004/05/14 09:31:17 tron Exp $
DISTNAME= pine4.60
PKGNAME= pine-4.60
@@ -19,7 +19,7 @@ USE_PKGINSTALL= YES
CONF_FILES= ${PREFIX}/share/examples/pine/pine.conf ${PKG_SYSCONFDIR}/pine.conf
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
.if ${OPSYS} == "SunOS"
BUILDNAME= so5
@@ -35,6 +35,10 @@ BUILDNAME= neb
BUILDFILE= neb
.endif
+.if !empty(CC_VERSION:Mgcc-3*)
+UNLIMIT_RESOURCES+= datasize
+.endif
+
.if defined(USE_OPENLDAP) && (${USE_OPENLDAP} == "YES")
. include "../../databases/openldap/buildlink3.mk"
LDAPCFLAGS= LDAPCFLAGS="-DENABLE_LDAP"
@@ -56,7 +60,8 @@ do-configure:
@${LN} -sf ${BUILDLINK_DIR}/include/pico ${WRKSRC}/pico
do-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build ${BUILDNAME} \
+ cd ${WRKSRC} && ${_ULIMIT_CMD} && \
+ ${SETENV} ${MAKE_ENV} ./build ${BUILDNAME} \
${LDAPCFLAGS} ${LDAPLIBS} \
PREFIX=${PREFIX} \
CC="${CC} ${CFLAGS} ${LDFLAGS}"