diff --git a/scripts/z-run b/scripts/z-run index d4d7dd2..d649c4d 100644 --- a/scripts/z-run +++ b/scripts/z-run @@ -44,10 +44,12 @@ test "${#}" -eq 0 _outputs="$( exec -- readlink -e -- ./.outputs )" mkdir -p -- "${_outputs}/binaries/release" + export -- CGO_ENABLED=0 exec -- "${ZRUN[@]}" ':: go / tool' \ build \ -v \ - -ldflags 'all=-s' \ + -tags netgo \ + -ldflags 'all=-s -extld gcc -extldflags "-static"' \ -gcflags 'all=-l=4' \ -o "${_outputs}/binaries/release/kawipiko-server" \ -- ./cmd/server.go \