Skip to content

Go CGO cross compiler( AliYun )

Compare
Choose a tag to compare
@Ran-Xing Ran-Xing released this 14 Aug 00:31
· 4 commits to main since this release
d13e06f

By: crazy-max/xgo

mirror: xrsec/xgo

Example:

# Makefile
build:
  @if [ ! -e "example-linux-amd64" ]; then xgo --targets=linux/amd64 -ldflags="-s -w -extldflags -static" ./example; fi

# bash
xgo --targets=darwin/amd64,darwin/arm64 -ldflags="-s -w -extldflags -static" ./example