summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortron <tron>2004-05-14 09:31:17 +0000
committertron <tron>2004-05-14 09:31:17 +0000
commite7226a3ef518895af5ddbe16a2844d109a2c9df3 (patch)
tree57989fa6498c0bcd96e86daeb2dbc77cf56136dc /mail
parent84c45ce79747fd70bd60c24fbc651d82b47030bf (diff)
downloadpkgsrc-e7226a3ef518895af5ddbe16a2844d109a2c9df3.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}"