1
0
Fork 0

Use Go-only versions of net and os

Avoid warnings when building.
master
Philip O'Toole 3 years ago
parent 982d5d812b
commit bb2473ca7b

@ -42,7 +42,13 @@ cd rqlite
go get -d ./...
LINKER_PKG_PATH=github.com/rqlite/rqlite/cmd
go install -ldflags="-extldflags=-static -X $LINKER_PKG_PATH.Version=$VERSION -X $LINKER_PKG_PATH.Branch=$branch -X $LINKER_PKG_PATH.Commit=$commit -X $LINKER_PKG_PATH.Buildtime=$buildtime" ./...
go install -tags osusergo,netgo,sqlite_omit_load_extension -ldflags="-extldflags=-static -X $LINKER_PKG_PATH.Version=$VERSION -X $LINKER_PKG_PATH.Branch=$branch -X $LINKER_PKG_PATH.Commit=$commit -X $LINKER_PKG_PATH.Buildtime=$buildtime" ./...
ldd $GOPATH/bin/rqlited
if [ $? -ne 1 ]; then
echo "Failed to confirm fully static linking"
exit 1
fi
release=`echo rqlite-$VERSION-$kernel-$machine | tr '[:upper:]' '[:lower:]'`
release_pkg=${release}.tar.gz

Loading…
Cancel
Save