From mboxrd@z Thu Jan 1 00:00:00 1970 From: lucio@proxima.alt.za (Lucio De Re) Date: Fri, 25 Nov 2011 10:20:59 +0200 Subject: [9fans] Plan 9 Related Work In-Reply-To: Message-ID: <95363d8151b52611aa83dfddf5dd8007@proxima.alt.za> Topicbox-Message-UUID: 46ffbf9c-ead7-11e9-9d60-3106f5b1d025 > 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