patch-config__arch-n-opsys 584 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-config__arch-n-opsys,v 1.5 2013/12/08 22:24:01 jasper Exp $
  2. Add support for OpenBSD/powerpc.
  3. --- config/_arch-n-opsys.orig Sun Dec 8 15:00:53 2013
  4. +++ config/_arch-n-opsys Sun Dec 8 15:05:32 2013
  5. @@ -1,4 +1,5 @@
  6. #!@SHELL@
  7. +[ -z "$SMLNJ_HOME" ] && SMLNJ_HOME=${TRUEPREFIX}/smlnj
  8. #
  9. # .arch-n-opsys -- get architecture and system info
  10. #
  11. @@ -104,8 +105,9 @@ case `uname -s` in
  12. OpenBSD)
  13. OPSYS=openbsd
  14. HEAP_OPSYS=bsd
  15. - case `uname -m` in
  16. + case `uname -p` in
  17. *86) ARCH=x86;;
  18. + powerpc) ARCH=ppc;;
  19. *) exit 1;;
  20. esac
  21. ;;