Releases: XRSec/xgo
Releases · XRSec/xgo
Go CGO cross compiler( AliYun )
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
Go CGO cross compiler( AliYun )
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
Go CGO cross compiler( AliYun )
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