fix and simplify further

This commit is contained in:
tg 2006-08-12 20:01:35 +00:00
parent d1dfe9657f
commit 70babe6b0c

View File

@ -1,13 +1,12 @@
#!/bin/sh #!/bin/sh
# $MirOS: src/bin/mksh/Build.sh,v 1.45 2006/08/12 19:53:39 tg Exp $ # $MirOS: src/bin/mksh/Build.sh,v 1.46 2006/08/12 20:01:35 tg Stab $
#- #-
# This script recognises CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS and NROFF. # This script recognises CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS and NROFF.
CC="${CC:-gcc}" : ${CFLAGS=-O2 -fno-strict-aliasing -fno-strength-reduce -Wall}
CFLAGS="${CFLAGS--O2 -fno-strict-aliasing -fno-strength-reduce -Wall}" : ${CC:=gcc} ${srcdir:=`dirname "$0"`} ${NROFF:=nroff}
srcdir="${srcdir:-`dirname "$0"`}" curdir=`pwd`
curdir="`pwd`" echo | $NROFF -v 2>&1 | grep GNU >&- 2>&- && NROFF="$NROFF -c"
echo | ${NROFF:=nroff} -v 2>&1 | grep GNU >&- 2>&- && NROFF="$NROFF -c"
e=echo e=echo
q=0 q=0