Skip to content

Commit

Permalink
Merge pull request #17 from stepanstipl/fix-static
Browse files Browse the repository at this point in the history
Make build script respect CGO_ENABLED and build static binaries
  • Loading branch information
lawrencegripper authored Apr 4, 2019
2 parents cede592 + 28f0f97 commit d9a4b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...'
Expand Down

0 comments on commit d9a4b8c

Please sign in to comment.