diff --git a/hack/build.sh b/hack/build.sh index 87d9c454a82..a68c93d596d 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -38,6 +38,7 @@ export CGO_ENABLED=0 case "${MODE}" in release) + LDFLAGS="${LDFLAGS} -s -w" TAGS="${TAGS} release" if test -n "${RELEASE_IMAGE}" then