From 6debbe6c3093d643e00f68ba0c42691371234ea8 Mon Sep 17 00:00:00 2001 From: Ashutosh Narkar Date: Thu, 29 Aug 2024 14:12:02 -0700 Subject: [PATCH] Makefile: Use dynamic suffix for binary name for builds with cgo enabled Signed-off-by: Ashutosh Narkar --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 52b1cd5a1..f21b77c0e 100644 --- a/Makefile +++ b/Makefile @@ -260,7 +260,7 @@ release: .PHONY: release-build-linux-% release-build-linux-%: ensure-release-dir @$(MAKE) build GOOS=linux GOARCH=$* - mv opa_envoy_linux_$* $(RELEASE_DIR)/opa_envoy_linux_$* + mv opa_envoy_linux_$*_dynamic $(RELEASE_DIR)/opa_envoy_linux_$* .PHONY: release-build-linux-static-% release-build-linux-static-%: ensure-release-dir @@ -270,7 +270,7 @@ release-build-linux-static-%: ensure-release-dir .PHONY: release-build-darwin-% release-build-darwin-%: ensure-release-dir @$(MAKE) build GOOS=darwin GOARCH=$* - mv opa_envoy_darwin_$* $(RELEASE_DIR)/opa_envoy_darwin_$* + mv opa_envoy_darwin_$*_dynamic $(RELEASE_DIR)/opa_envoy_darwin_$* .PHONY: release-build-darwin-static-% release-build-darwin-static-%: ensure-release-dir