summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron>2002-01-05 06:46:03 +0000
committertron <tron>2002-01-05 06:46:03 +0000
commit4946daf01a6fa481e334d089d43b8254b7f599e3 (patch)
treeefd48dfc30d820ccac721d26423f8a5b679555e6 /mk
parent3457c17a88bd319574f83ef26e82bc1ccf307ba2 (diff)
downloadpkgsrc-4946daf01a6fa481e334d089d43b8254b7f599e3.tar.gz
Use abstract names like "datasize" and "stacksize" in "UNLIMIT_RESOURCES"
to avoid portability problems as suggested by Jim Wise.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 4abb8817d88..5a8e3f8bc6d 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.889 2002/01/04 15:20:25 skrll Exp $
+# $NetBSD: bsd.pkg.mk,v 1.890 2002/01/05 06:46:03 tron Exp $
#
# This file is in the public domain.
#
@@ -234,9 +234,12 @@ DEPENDS+= gtexinfo-3.12:../../devel/gtexinfo
# Automatically increase process limit where necessary for building.
_ULIMIT_CMD=
.if defined(UNLIMIT_RESOURCES)
-. for _LIMIT in $(UNLIMIT_RESOURCES)
-_ULIMIT_CMD+= ulimit -${_LIMIT} `ulimit -H -${_LIMIT}`;
-. endfor
+. if ${UNLIMIT_RESOURCES:Mdatasize} != ""
+_ULIMIT_CMD+= ulimit -d `ulimit -H -d`;
+. endif
+. if ${UNLIMIT_RESOURCES:Mstacksize} != ""
+_ULIMIT_CMD+= ulimit -s `ulimit -H -s`;
+. endif
.endif
# -lintl in CONFIGURE_ENV is to workaround broken gettext.m4