命令:
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)
在谷歌上没找到对应的解决方案
1
warlock 2021-04-15 18:41:40 +08:00
|