summaryrefslogtreecommitdiff
path: root/mail/pine/Makefile
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
commitafe9e287cf29527e1b49ef75cacbed903df86bb0 (patch)
tree57989fa6498c0bcd96e86daeb2dbc77cf56136dc /mail/pine/Makefile
parent513c9dffdf3705620ff24c3556061b24d1d0dce6 (diff)
downloadpkgsrc-afe9e287cf29527e1b49ef75cacbed903df86bb0.tar.gz
Unlimit datasize when building with GCC 3.x because the compiler might
otherwise fail to allocate enough memory.
Diffstat (limited to 'mail/pine/Makefile')
-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}"