fix building in separate directory under non-MirOS
This commit is contained in:
parent
0bac97e6f9
commit
a2d62f743e
9
Build.sh
9
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirOS: src/bin/mksh/Build.sh,v 1.5 2005/05/25 23:44:50 tg Exp $
|
# $MirOS: src/bin/mksh/Build.sh,v 1.6 2005/05/28 21:30:32 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Recognised command line parameters and their defaults:
|
# Recognised command line parameters and their defaults:
|
||||||
# CC gcc
|
# CC gcc
|
||||||
@ -15,11 +15,12 @@
|
|||||||
# Solaris LDFLAGS=
|
# Solaris LDFLAGS=
|
||||||
|
|
||||||
SHELL="${SHELL:-/bin/sh}"
|
SHELL="${SHELL:-/bin/sh}"
|
||||||
CC="${CC:-gcc}"
|
|
||||||
CFLAGS="${CFLAGS--O2 -fno-strict-aliasing -fno-strength-reduce}"
|
|
||||||
LDFLAGS="${LDFLAGS--static}"
|
|
||||||
srcdir="${srcdir:-`dirname $0`}"
|
srcdir="${srcdir:-`dirname $0`}"
|
||||||
curdir="`pwd`"
|
curdir="`pwd`"
|
||||||
|
CC="${CC:-gcc}"
|
||||||
|
CFLAGS="${CFLAGS--O2 -fno-strict-aliasing -fno-strength-reduce}"
|
||||||
|
CPPFLAGS="-I $curdir $CPPFLAGS"
|
||||||
|
LDFLAGS="${LDFLAGS--static}"
|
||||||
NROFF="${NROFF:-nroff}"
|
NROFF="${NROFF:-nroff}"
|
||||||
OS="`uname -s || uname`"
|
OS="`uname -s || uname`"
|
||||||
export SHELL CC
|
export SHELL CC
|
||||||
|
Loading…
Reference in New Issue
Block a user