Error when building: invalid flag in #cgo LDFLAGS: -Wl,-no_pie

I run this build command and it fails with the error given. My build command is not using those flags directly so not sure what’s happening?

go build -buildmode=c-shared -o "example.node" cmd/main.go

I think it’s -no-pie, not -no_pie.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.