技术解析
命令:
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -buildmode=plugin -o=./release.so main.go
结果:
# command-line-arguments
/usr/local国外服务器/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在谷歌上没找到对应的解决方案