diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-30 15:27:34 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-30 15:27:34 +0100 |
commit | 2875c0ee841e74e272e832fdfb91dc8c73013ccd (patch) | |
tree | 20d0ec969f51b9eb3410090f64a1fc6e092b9fb0 /Makefile | |
parent | 86ada69f32491de2415d237605370e7f4e8d5e01 (diff) | |
parent | 47e50c10a8bb626f3366912bc4691bd5fbddea45 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ # 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 $$(ulimit -dH 2>/dev/null ) 2>/dev/null; +_UNLIMIT= ulimit -dS $(shell ulimit -dH >/dev/null 2>/dev/null ) >/dev/null 2>/dev/null; all: .prereq_done @${_UNLIMIT} ${GMAKE_INV} all @@ -161,6 +161,11 @@ NO_ERROR=0 @if ! mksh -c 'echo $$KSH_VERSION' 2>&1 | fgrep 'MIRBSD' >/dev/null 2>&1; then \ echo "MirBSD ksh (mksh) needs to be installed."; \ exit 1; \ + else \ + if [ $$(mksh -c 'echo $$KSH_VERSION' |cut -d ' ' -f 3|sed "s#R##") -le 38 ]; then \ + echo "MirBSD ksh is too old. R38 or higher needed."; \ + exit 1; \ + fi \ fi @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \ echo >&2 Error: you must build with umask 022, sorry.; \ @@ -187,7 +192,7 @@ NO_ERROR=0 -e 's/i[3-9]86/i386/' \ )" >>prereq.mk @echo 'HOSTCC:=${CC}' >>prereq.mk - @echo 'HOSTCFLAGS:=-O2 -fwrapv' >>prereq.mk + @echo 'HOSTCFLAGS:=-O2' >>prereq.mk @echo 'LANGUAGE:=C' >>prereq.mk @echo 'LC_ALL:=C' >>prereq.mk @echo 'MAKE:=$${GMAKE}' >>prereq.mk |