Replies: 1 comment 1 reply
-
have you check https://goreleaser.com/cookbooks/cgo-and-crosscompiling/ ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am struggling cross-compiling using cgo with goreleaser. I have to link static library for my binary depend on its GOARCH opts.
For example, I have
libmylib.aarch64.a
andlibmylib.x86_64.a
and I have to rename them tolibmylib.a
when I link this library at build time. but In goreleaser, it seems to be no way to make this change on the build stage. If there are some method to resolve this issue, please help me. Thanks!Beta Was this translation helpful? Give feedback.
All reactions