Skip to content

Commit

Permalink
Makefile: Use dynamic suffix for binary name for builds with cgo enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
  • Loading branch information
ashutosh-narkar committed Aug 29, 2024
1 parent c92aa79 commit 6debbe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6debbe6

Please sign in to comment.