1
0
mirror of https://git.envs.net/envs/ifconfig synced 2024-11-26 06:33:46 +01:00

(*)fixed cross build

This commit is contained in:
Fan Yang 2015-01-10 11:49:58 +08:00
parent a3ec3d0077
commit 4c5bf57011
2 changed files with 3 additions and 4 deletions

@ -38,6 +38,7 @@ function go-all {
for PLATFORM in $PLATFORMS; do for PLATFORM in $PLATFORMS; do
GOOS=${PLATFORM%/*} GOOS=${PLATFORM%/*}
GOARCH=${PLATFORM#*/} GOARCH=${PLATFORM#*/}
GOARM=6
CMD="go-${GOOS}-${GOARCH} $@" CMD="go-${GOOS}-${GOARCH} $@"
echo "$CMD" echo "$CMD"
$CMD || FAILURES="$FAILURES $PLATFORM" $CMD || FAILURES="$FAILURES $PLATFORM"

@ -56,17 +56,15 @@ go_install()
tar xz -C ${TMPDIR-/tmp} tar xz -C ${TMPDIR-/tmp}
export GOROOT=${TMPDIR-/tmp}/go export GOROOT=${TMPDIR-/tmp}/go
export PATH=${TMPDIR-/tmp}/go/bin/:$PATH export PATH=${TMPDIR-/tmp}/go/bin/:$PATH
wget https://raw.githubusercontent.com/davecheney/golang-crosscompile/master/crosscompile.bash #wget https://raw.githubusercontent.com/davecheney/golang-crosscompile/master/crosscompile.bash
source ./crosscompile.bash source ./crosscompile.bash
go-crosscompile-build-all go-crosscompile-build-all
} }
go_run() go_run()
{ {
cd $GOPATH
go-build-all
ls
cd "${TRAVIS_BUILD_DIR}"; cd "${TRAVIS_BUILD_DIR}";
go-build-all
} }
prebuilt_prepare() prebuilt_prepare()