[build] Minor update

This commit is contained in:
Ciprian Dorin Craciun 2019-08-12 00:34:24 +03:00
parent aa4cc5a672
commit a9b4624894

View file

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