pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/pine Unlimit datasize when building with GCC 3.x ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f03f477293b1
branches:  trunk
changeset: 475323:f03f477293b1
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri May 14 09:31:17 2004 +0000

description:
Unlimit datasize when building with GCC 3.x because the compiler might
otherwise fail to allocate enough memory.

diffstat:

 mail/pine/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r ecaa066708cf -r f03f477293b1 mail/pine/Makefile
--- a/mail/pine/Makefile        Fri May 14 09:27:32 2004 +0000
+++ b/mail/pine/Makefile        Fri May 14 09:31:17 2004 +0000
@@ -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 @@
 
 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 @@
 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 @@
        @${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}"



Home | Main Index | Thread Index | Old Index