From 7bc95f98c8564b339475dbd6e806cac9cd920bf2 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Tue, 16 Nov 2021 19:10:19 +0100 Subject: [PATCH] Add -s -w flags when building to omit the symbol table, debug information and the DWARF table --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dcbdf06..552e140 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ lint: install-tools .PHONY: build build: - CGO_ENABLED=0 go build -ldflags="-X 'github.com/dcarrillo/whatismyip/internal/core.Version=${VERSION}'" -o whatismyip ./cmd + CGO_ENABLED=0 go build -ldflags="-s -w -X 'github.com/dcarrillo/whatismyip/internal/core.Version=${VERSION}'" -o whatismyip ./cmd .PHONY: docker-build docker-build: