Cross compiling linux/mips with softfloat
MattLok opened this issue · 3 comments
I'm trying to compile a go binary that uses some of the go-ethereum package. I've been running into a lot of issues trying to get my program running on a mips device. Running the following generates an "Illegal Instruction" error on device:
xgo --deps=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 --targets=linux/mips --ldflags '-extldflags "-static"' ./
Before I was including the go-ethereum library in my application I was able to successfully compile and run the binary with the following build command:
env GOOS=linux GOARCH=mips GOMIPS=softfloat go build -a
How do I pass xgo the GOMIPS=softfloat argument?
Thank you!
Any update on this? I'm having a similar issue where I want to pass in GOMIPS=softfloat