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:
John Scipione 2013-09-14 14:55:53 -04:00
parent cfa8ecbc86
commit eeb345aa17
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ additionalMakeArgs=$*
# additional flags for the binutils build. Should there ever be any other
# 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:
buildhostMachine=i586-pc-haiku_buildhost
buildHostSpec="--build=$buildhostMachine --host=$buildhostMachine"

View File

@ -50,7 +50,7 @@ arm-*)
;;
esac
if [ `uname -o` = 'Haiku' ]; then
if [ `uname -s` = 'Haiku' ]; then
# force cross-build if building on Haiku:
buildhostMachine=${haikuMachine}_buildhost
buildHostSpec="--build=$buildhostMachine --host=$buildhostMachine"