Use uname -s instead of uname -o
...since BSD uname (on OS X at least) doesn't have a -o param, only a -s, Haiku has both, and both print "Haiku".
This commit is contained in:
committed by
Rene Gollent
parent
acd58c2f6c
commit
a7e9ce676f
@@ -20,7 +20,7 @@ additionalMakeArgs=$*
|
|||||||
# additional flags for the binutils build. Should there ever be any other
|
# additional flags for the binutils build. Should there ever be any other
|
||||||
# flags than -jN, we need to handle this differently.
|
# flags than -jN, we need to handle this differently.
|
||||||
|
|
||||||
if [ `uname -o` = 'Haiku' ]; then
|
if [ `uname -s` = 'Haiku' ]; then
|
||||||
# force cross-build if building on Haiku:
|
# force cross-build if building on Haiku:
|
||||||
buildhostMachine=i586-pc-haiku_buildhost
|
buildhostMachine=i586-pc-haiku_buildhost
|
||||||
buildHostSpec="--build=$buildhostMachine --host=$buildhostMachine"
|
buildHostSpec="--build=$buildhostMachine --host=$buildhostMachine"
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ arm-*)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ `uname -o` = 'Haiku' ]; then
|
if [ `uname -s` = 'Haiku' ]; then
|
||||||
# force cross-build if building on Haiku:
|
# force cross-build if building on Haiku:
|
||||||
buildhostMachine=${haikuMachine}_buildhost
|
buildhostMachine=${haikuMachine}_buildhost
|
||||||
buildHostSpec="--build=$buildhostMachine --host=$buildhostMachine"
|
buildHostSpec="--build=$buildhostMachine --host=$buildhostMachine"
|
||||||
|
|||||||
Reference in New Issue
Block a user