Browse Source

fix unlimit datasize

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 13 years ago
parent
commit
16e7dc58f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -1,7 +1,8 @@
 # This file is part of the OpenADK project. OpenADK is copyrighted
 # material, please see the LICENCE file in the top-level directory.
 
-_UNLIMIT=	ulimit -dS $(shell ulimit -dH >/dev/null 2>/dev/null ) >/dev/null 2>/dev/null;
+_UNLIMIT=	__limit=$$(ulimit -dH 2>/dev/null); \
+		test -n "$$__limit" && ulimit -dS $$__limit;
 
 all: .prereq_done
 	@${_UNLIMIT} ${GMAKE_INV} all