golang 交叉编译

1.golang交叉编译需要

golang.org/
└── x
├── net
├── sys
└── tools
 

golang.org/x/sys/unix 支持
cd $GOPATH/src/golang.org/x/

git clone https://github.com/golang/net.git
git clone https://github.com/golang/sys.git
git clone https://github.com/golang/tools.git

2.交叉编译shell脚本

https://github.com/thelark/go-build-tools

参考文献:

https://javasgl.github.io/go-get-golang-x-packages/

https://www.jianshu.com/p/1207276f3617

猜你喜欢

转载自blog.csdn.net/weixin_41282397/article/details/86006148