> sorry, I never tried cross-compiling. I started here: > http://en.wikipedia.org/wiki/Cross_compiler#GCC_and_cross_compilation, and > http://www.cis.upenn.edu/~milom/cross-compile.html > > what should be switch --target=some-target set to? > >> your best bet is to cross-compile on Linux. set GOOS to plan9 and GOARCH >> to 386. >> >>
Much easier than with GCC: $ export GOOS=plan9 $ export GOARCH=386 $ 8g -o _go_.8 mod-1.go mod-2.go ... $ 8l -o 8.out _go_.8 But you do need the runtime and packages compiled for Plan 9 ($GOROOT/pkg/plan9_386/* is where they will live). That is what I find harder to generate from the HG tip. ++L
