2018-07-23 15:21:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-09-26 14:40:41 +00:00
|
|
|
export GOROOT=$2
|
|
|
|
export GOPATH=$3
|
2018-07-23 15:21:31 +00:00
|
|
|
export PATH=$GOROOT/bin:$GOROOT:$GOPATH:$PATH
|
2018-09-26 14:40:41 +00:00
|
|
|
if [ "$1" = 'Windows' ]; then
|
|
|
|
export GOOS=windows
|
|
|
|
export GOARCH=amd64
|
|
|
|
export CGO_ENABLED=1
|
|
|
|
export CC=$5
|
|
|
|
export CC_FOR_TARGET=$5
|
|
|
|
export CXX_FOR_TARGET=$6
|
|
|
|
fi
|
2018-07-23 15:21:31 +00:00
|
|
|
|
2018-09-26 14:40:41 +00:00
|
|
|
cd $4/lib
|
2018-07-23 15:21:31 +00:00
|
|
|
go get ./
|
|
|
|
cd ..
|
2018-09-26 14:40:41 +00:00
|
|
|
|
|
|
|
make statusgo-library
|