diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2014-03-05 16:43:20 -0500 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2014-03-05 16:43:20 -0500 |
commit | e78ed7a67bbaa37dc57dfb37219f505c48755e14 (patch) | |
tree | b476780ceed6f2ff7aaa5b448d20ee625d49f412 /INSTALL | |
parent | 63002b3e5ab034ff1317c21b994b803cd68a6eee (diff) | |
download | plan9port-e78ed7a67bbaa37dc57dfb37219f505c48755e14.tar.gz plan9port-e78ed7a67bbaa37dc57dfb37219f505c48755e14.tar.bz2 plan9port-e78ed7a67bbaa37dc57dfb37219f505c48755e14.zip |
INSTALL: fix architecture detection on Solaris.
And uses gcc for i386 and x86_64.
LGTM=rsc
R=rsc
https://codereview.appspot.com/69860044
Diffstat (limited to 'INSTALL')
-rwxr-xr-x | INSTALL | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -78,6 +78,27 @@ if [ `uname` = Linux ]; then rm -f ./a.out 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 # On Darwin, uname -m -p cannot be trusted. echo "* Running on Darwin: checking architecture..." |