cortex / gopass

Gopass: A simple password-store GUI
GNU General Public License v3.0
188 stars 13 forks source link

Static binary #4

Closed christopherL91 closed 8 years ago

christopherL91 commented 8 years ago

This is now a static binary

christopherL91 commented 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?

cortex commented 8 years ago

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.