From 28f0f97ae9428bda4e49a236f999378e4aa0f143 Mon Sep 17 00:00:00 2001 From: Stepan Stipl Date: Tue, 12 Mar 2019 00:37:15 +0000 Subject: [PATCH] Make build script respect CGO_ENABLED and build static binaries --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index c1c05a9..f98b1d2 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -20,7 +20,7 @@ do fi echo "Building for $GOOS $GOARCH..." - GOOS=$GOOS GOARCH=$GOARCH go build -a -installsuffix cgo -o $output_name + GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=$CGO_ENABLED go build -a -installsuffix cgo -o $output_name if [ $? -ne 0 ]; then echo 'An error has occurred! Aborting the script execution...'