Merge pull request #18837 from andyedwardsibm/main

Makefile to force a shell when running command
This commit is contained in:
OpenShift Merge Robot
2023-06-10 07:02:41 -04:00
committed by GitHub

View File

@ -21,7 +21,7 @@
###
# Default shell `/bin/sh` has different meanings depending on the platform.
SHELL := $(shell command -v bash)
SHELL := $(shell command -v bash;)
GO ?= go
GO_LDFLAGS:= $(shell if $(GO) version|grep -q gccgo ; then echo "-gccgoflags"; else echo "-ldflags"; fi)
GOCMD = CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO)