build_dist.sh: make cross-compilation friendly for env CC specified

Signed-off-by: ayanamist <ayanamist@gmail.com>
This commit is contained in:
ayanamist 2023-04-27 15:58:57 +08:00 committed by Dave Anderson
parent 633d08bd7b
commit 042f82ea32

View File

@ -16,7 +16,7 @@ if [ -n "${TS_USE_TOOLCHAIN:-}" ]; then
go="./tool/go"
fi
eval `GOOS=$($go env GOHOSTOS) GOARCH=$($go env GOHOSTARCH) $go run ./cmd/mkversion`
eval `CGO_ENABLED=0 GOOS=$($go env GOHOSTOS) GOARCH=$($go env GOHOSTARCH) $go run ./cmd/mkversion`
if [ "$1" = "shellvars" ]; then
cat <<EOF