cmd/cgo: env CGO_LDFLAGS not working but config #cgo LDFLAGS works #33520
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Hi, When build go code with some c .so file code in go 1.11+ modules, I config the directives in cgo file like this:
// #cgo LDFLAGS: -L/abc/dir -lfoo
That's build successfull, but when I remove this line and then config env var
CGO_LDFLAGS
when build, it not working:both above are failed find the c so inner func method, why. Anybody can help me?
The text was updated successfully, but these errors were encountered: