diff options
author | tron <tron> | 2002-01-05 06:46:03 +0000 |
---|---|---|
committer | tron <tron> | 2002-01-05 06:46:03 +0000 |
commit | f1197125bd0600d0d838f6d4cdfef6c1017893f2 (patch) | |
tree | efd48dfc30d820ccac721d26423f8a5b679555e6 | |
parent | 614fbc70a8bc903eed499a2c824cb5610fabb1db (diff) | |
download | pkgsrc-f1197125bd0600d0d838f6d4cdfef6c1017893f2.tar.gz |
Use abstract names like "datasize" and "stacksize" in "UNLIMIT_RESOURCES"
to avoid portability problems as suggested by Jim Wise.
-rw-r--r-- | mk/bsd.pkg.mk | 11 |
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 |