Closed christopherL91 closed 8 years ago
Have tried to make it "fully" static but there are some C dependencies that needs to be fixed in order to make it happen. If everything was just Go then it would have been very easy to produce binaries for every available platform. Maybe you have more experience using cgo in cross compiling?
Thank you, this looks good! I think building with this set of flags should do it: go build -ldflags "-linkmode external -extldflags -static"
I only got half-way with this on my machine because I have to rebuild lots of packages for static builds, but perhaps you will have better luck.
This is now a static binary