BUILD_ON_UNIX 632 B

1234567891011121314151617181920212223
  1. install plan9ports
  2. put $PLAN9/bin LAST in your path
  3. export HARVEY=/path/to/harvey
  4. mkdir -p $HARVEY/linux_amd64/bin
  5. ln -s ~/plan9port/bin/9c $HARVEY/linux_amd64/bin/pcc
  6. cd /somewhere/to/build/9-cc
  7. git clone -b harvey git@github.com:Harvey-OS/9-cc.git
  8. cd 9-cc
  9. mkdir -p Linux/amd64/lib
  10. # from more INSTALL
  11. ./configure
  12. . ./env
  13. mk
  14. mk install
  15. cp ./Linux/amd64/bin/iar $HARVEY/linux_amd64/bin/ar
  16. cp ~/plan9port/bin/{sed, yacc,lex,awk,date} harvey/harvey/linux_amd64/bin
  17. cp $PLAN/bin/awk $HARVEY/linux_amd64/bin/awk
  18. cd sys/src
  19. PATH=$HARVEY/linux_amd64/bin/:$PATH
  20. sh BUILDTOOLCHAIN
  21. export objtype=amd64
  22. bash RUN_BUILD_IN_PRIVATE_NAMESPACE