diff options
author | tron <tron@pkgsrc.org> | 2002-01-05 06:46:03 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2002-01-05 06:46:03 +0000 |
commit | 6a420f1c6316a483548e31e8fc83c6d689335556 (patch) | |
tree | efd48dfc30d820ccac721d26423f8a5b679555e6 /mk | |
parent | 513ddfad2a9afd9b569206e99aee09481678be4b (diff) | |
download | pkgsrc-6a420f1c6316a483548e31e8fc83c6d689335556.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.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 |