1
0
mirror of https://git.envs.net/envs/ifconfig synced 2024-11-22 09:51:57 +01:00

(*)fixed cross compile

This commit is contained in:
Fan Yang 2015-12-27 19:29:42 +08:00
parent f3b9958346
commit fa1cf07844

@ -61,7 +61,26 @@ go_install()
go_run()
{
cd "${TRAVIS_BUILD_DIR}";
go-build-all
GOARCH=amd64 GOOS=linux go build -ldflags="-s" -o ifconfig-linux-amd64
GOARCH=386 GOOS=linux go build -ldflags="-s" -o ifconfig-linux-386
GOARCH=arm GOOS=linux go build -ldflags="-s" -o ifconfig-linux-arm
GOARCH=arm64 GOOS=linux go build -ldflags="-s" -o ifconfig-linux-arm64
GOARCH=ppc64 GOOS=linux go build -ldflags="-s" -o ifconfig-linux-ppc64
GOARCH=ppc64le GOOS=linux go build -ldflags="-s" -o ifconfig-linux-ppc64le
GOARCH=amd64 GOOS=dragonfly go build -ldflags="-s" -o ifconfig-dragonfly-amd64
GOARCH=amd64 GOOS=freebsd go build -ldflags="-s" -o ifconfig-freebsd-amd64
GOARCH=386 GOOS=freebsd go build -ldflags="-s" -o ifconfig-freebsd-amd64
GOARCH=arm GOOS=freebsd go build -ldflags="-s" -o ifconfig-freebsd-amd64
GOARCH=amd64 GOOS=netbsd go build -ldflags="-s" -o ifconfig-netbsd-amd64
GOARCH=386 GOOS=netbsd go build -ldflags="-s" -o ifconfig-netbsd-amd64
GOARCH=arm GOOS=netbsd go build -ldflags="-s" -o ifconfig-netbsd-amd64
GOARCH=amd64 GOOS=openbsd go build -ldflags="-s" -o ifconfig-openbsd-amd64
GOARCH=386 GOOS=openbsd go build -ldflags="-s" -o ifconfig-openbsd-amd64
GOARCH=arm GOOS=openbsd go build -ldflags="-s" -o ifconfig-openbsd-amd64
GOARCH=amd64 GOOS=darwin go build -o ifconfig-darwin-amd64
GOARCH=386 GOOS=darwin go build -o ifconfig-darwin-amd64
GOARCH=amd64 GOOS=windows go build -o ifconfig-windows-amd64
GOARCH=386 GOOS=windows go build -o ifconfig-windows-386
}
prebuilt_prepare()