GOOS = linux GOARCH = amd64 go build go build github.com/ethereum/go-ethereum/crypto/secp256k1:build constraints排除/Users/mac/Documents/project/src/github.com/ethereum/中的allGo文件去-复仇/加密/ secp256k1
答案 0 :(得分:0)
使用CGO_ENABLED=1
运行命令以在交叉编译时启用cgo。
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build