diff --git a/src/go-build-wrapper b/src/go-build-wrapper index 8f84277ed..7b59957fc 100755 --- a/src/go-build-wrapper +++ b/src/go-build-wrapper @@ -27,5 +27,5 @@ if ! cd "$1"; then exit 1 fi -go build -trimpath -ldflags "-X github.com/containers/toolbox/pkg/version.currentVersion=$3" -o "$2" +CGO_ENABLED=0 go build -tags osusergo -trimpath -ldflags "-X github.com/containers/toolbox/pkg/version.currentVersion=$3" -o "$2" exit "$?"