Closed vtolstov closed 8 years ago
These are two independent questions.
go build
(or a variant thereof)Neither of these two tasks are specific to go-augeas. Setting up C cross compilers is a non-trivial task, and how to obtain a statically linked augeas depends on your system. At the least, you wouldn't want to be using glibc (assuming you're on Linux), as glibc doesn't really work well with static compilation.
This isn't really the right place to discuss this, however. You will want to look into resources about cross-compiling C itself, as well as static linking and cross-compiling with Go. I do not think that any changes to this Go package are required.
Does it possible to link with static augeas library and enable cros-compile (i'm using go 1.5.1)