serpent-os / boulder-d-legacy

Replaced by Rust tooling
https://serpentos.com
21 stars 7 forks source link

golang: gc-sections breaks the cgo linker #75

Closed ReillyBrogan closed 1 year ago

ReillyBrogan commented 1 year ago

Ref: https://groups.google.com/g/golang-codereviews/c/ZnfJ5olFsnk

This issue was also surfaced by https://github.com/serpent-os/boulder/pull/56.

I recommend adding -Wl,--no-gc-sections to the default CGO_LDFLAGS