mirror of
https://git.kernel.org/pub/scm/libs/libcap/libcap.git
synced 2026-01-26 15:39:08 +00:00
`GOOS` and `GOARCH` can be set to cross compile the Go code. But `good-names.go` is generated at build time using `mknames.go`, which must be built for the build platform. `GOOS` and `GOARCH` can be unset to do this. In many circumstances, Go will use its own internal linker to build the binary, which means it won't need to use `$CC`. But in some scenarios, e.g. when building PIE binaries, it will use `$CC` as the linker, so this needs to be set to the build platform's compiler for `go run`. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>