Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go语言在mac下编译Linux可执行文件 | M-LOG #28

Open
gaoyoubo opened this issue Jun 26, 2018 · 0 comments
Open

Go语言在mac下编译Linux可执行文件 | M-LOG #28

gaoyoubo opened this issue Jun 26, 2018 · 0 comments

Comments

@gaoyoubo
Copy link
Owner

http://www.mspring.org/2017/06/02/Go%E8%AF%AD%E8%A8%80%E5%9C%A8mac%E4%B8%8B%E7%BC%96%E8%AF%91Linux%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%96%87%E4%BB%B6/

进入源码目录,执行如下命令:1CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant