From 2f3c030c80d06cde7fa06eb8634b3111e6368ddd Mon Sep 17 00:00:00 2001 From: Michael Grymporounis Date: Fri, 10 Jul 2026 12:00:19 +0300 Subject: [PATCH] Add link flag to strip the Corteca CLI binary Append '-s' to the options for the link go tool. This option will omit the symbol table, debug information, and implicitly the DWARF symbol table from the resulting binary. Signed-off-by: Michael Grymporounis --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ca25bd3..e1dec19 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VERSION := $(shell git describe --tags) -BUILD_FLAGS := -x -v -ldflags "-X corteca/cmd.appVersion=$(VERSION)" +BUILD_FLAGS := -x -v -ldflags "-X corteca/cmd.appVersion=$(VERSION) -s" HOSTOS ?= $(shell go env GOOS) HOSTARCH ?= $(shell go env GOARCH) DESTOS ?= $(HOSTOS)