2019-03-01 13:24:23 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-07-23 15:21:31 +00:00
|
|
|
|
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
|
|
|
|
fi
|
2019-02-15 08:04:03 +00:00
|
|
|
export CC=$5
|
|
|
|
export CC_FOR_TARGET=$5
|
|
|
|
export CXX_FOR_TARGET=$6
|
|
|
|
|
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
|