dominikh / go-augeas

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

Allow static linking #15

Closed cryptobioz closed 6 years ago

dominikh commented 6 years ago

Does this allow, or enforce, static linking?

cryptobioz commented 6 years ago

Seems like it just allows you to use static linking but I'm not 100% sure.

cryptobioz commented 6 years ago

The flag --static may lead to overlinking which is definitely not a good thing. We can easily build a static binary without adding this flag, just by using CGO_CFLAGS and CGO_LDFLAGS.