dominikh / go-augeas

Go bindings for augeas
MIT License
21 stars 7 forks source link

link to static augeas library and cross-compile #2

Closed vtolstov closed 8 years ago

vtolstov commented 8 years ago

Does it possible to link with static augeas library and enable cros-compile (i'm using go 1.5.1)

dominikh commented 8 years ago

These are two independent questions.

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.