While cross-compiling a Go project for ARM on FreeBSD I came across a few errors that don’t make sense, for example unsupported option -mno-thumb
or unused option -marm
. I suspect that there is potentially a bug in the tool that compiles C code.
Therefore I’d like to see the exact command(s) invoked by cgo when it compiles/links C code so that I can reproduce the error.
I know that there is the -x
flag in go build
. Unfortunately, it doesn’t show the full set of options being passed to the C compiler (or at least I don’t see the flags mentioned in error messages in there).
Is there another way?