Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI: compilation instructions #10

Open
stapelberg opened this issue Oct 21, 2016 · 0 comments
Open

FYI: compilation instructions #10

stapelberg opened this issue Oct 21, 2016 · 0 comments

Comments

@stapelberg
Copy link
Contributor

Assuming you cloned go-mips32 into /home/michael/go-mips32, this is how you can compile it (using a Debian jessie Docker container until #9 is fixed):

$ docker run -t -i -v /home/michael/go-mips32:/home/michael/go-mips32 debian:jessie /bin/bash
# apt-get update && apt-get install build-essential git vim
# cd /home/michael/go-mips32/src
# git clone -b archive git://github.com/davecheney/golang-crosscompile.git
# sed -i 's,PLATFORMS=".*",PLATFORMS="linux/mips32 linux/mips32le",g' golang-crosscompile/crosscompile.bash
# source golang-crosscompile/crosscompile.bash
# go-crosscompile-build-all

Then, on the host, you can use go like this:

GOARCH=mips32le ~/go-mips32/bin/go build helloworld.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant