From 22c20fba9979b545a121092ba5e737402bad4bbc Mon Sep 17 00:00:00 2001 From: Himangini Date: Tue, 24 Jan 2023 18:29:28 +0000 Subject: [PATCH] added -s -w options for make binary --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e145e4e80c..086ffd295e 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ build: generate-always binary ## Generate, lint and build eksctl binary for curr .PHONY: binary binary: ## Build eksctl binary for current OS and place it at ./eksctl - CGO_ENABLED=0 go build -ldflags "-X $(version_pkg).gitCommit=$(git_commit) -X $(version_pkg).buildDate=$(build_date)" ./cmd/eksctl + CGO_ENABLED=0 go build -ldflags "-s -w -X $(version_pkg).gitCommit=$(git_commit) -X $(version_pkg).buildDate=$(build_date)" ./cmd/eksctl .PHONY: build-all