mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
INSTALL: fix architecture detection on Solaris.
And uses gcc for i386 and x86_64. LGTM=rsc R=rsc https://codereview.appspot.com/69860044
This commit is contained in:
parent
63002b3e5a
commit
e78ed7a67b
1 changed files with 21 additions and 0 deletions
21
INSTALL
21
INSTALL
|
@ -78,6 +78,27 @@ if [ `uname` = Linux ]; then
|
||||||
rm -f ./a.out
|
rm -f ./a.out
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ `uname` = SunOS ]; then
|
||||||
|
# On Solaris x86, uname -p cannot be trusted.
|
||||||
|
echo "* Running on Solaris: checking architecture..."
|
||||||
|
case "$(isainfo -n)" in
|
||||||
|
*amd64*)
|
||||||
|
echo " x86-64 found."
|
||||||
|
echo "OBJTYPE=x86_64" >>$PLAN9/config
|
||||||
|
echo "CC9=gcc" >>$PLAN9/config # defaults to gcc on Solaris/amd64
|
||||||
|
;;
|
||||||
|
*i386*)
|
||||||
|
echo " i386 found."
|
||||||
|
echo "OBJTYPE=386" >>$PLAN9/config
|
||||||
|
echo "CC9=gcc" >>$PLAN9/config # defaults to gcc on Solaris/i386
|
||||||
|
;;
|
||||||
|
*sparc*)
|
||||||
|
echo " Sparc found."
|
||||||
|
echo "OBJTYPE=sparc" >>$PLAN9/config
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
if [ `uname` = Darwin ]; then
|
if [ `uname` = Darwin ]; then
|
||||||
# On Darwin, uname -m -p cannot be trusted.
|
# On Darwin, uname -m -p cannot be trusted.
|
||||||
echo "* Running on Darwin: checking architecture..."
|
echo "* Running on Darwin: checking architecture..."
|
||||||
|
|
Loading…
Reference in a new issue