Where i can find information about Environment variables for use with cgo

Hello all
I try to find information about the flag that is used with cgo without any luck
all i have the page that list them :help package - cmd/go/internal/help - Go Packages
but what each flag is doing ? for example
CGO_LDFLAGS_ALLOW

A help package - cmd/go/internal/help - Go Packages

CGO_LDFLAGS, CGO_LDFLAGS_ALLOW, CGO_LDFLAGS_DISALLOW
Like CGO_CFLAGS, CGO_CFLAGS_ALLOW, and CGO_CFLAGS_DISALLOW,
but for the linker.

then above it says

CGO_CFLAGS_ALLOW
A regular expression specifying additional flags to allow
to appear in #cgo CFLAGS source code directives.
Does not apply to the CGO_CFLAGS environment variable.

1 Like