From eaba4e09236f887fe96e3cf047e70310dbca0381 Mon Sep 17 00:00:00 2001 From: jp Date: Thu, 5 Sep 2024 08:59:52 +0200 Subject: [PATCH] -s disable symbol table -w disable DWARF generation --- makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/makefile b/makefile index 6f2682ea..faac4c88 100644 --- a/makefile +++ b/makefile @@ -5,6 +5,7 @@ DIRECTORY = $(sort $(dir $(wildcard ./test/*/))) VERSION = $(shell git describe --tags --dirty) BUILDTIME := $(shell date '+%Y-%m-%dT%T%z') +GOLDFLAGS += -s -w GOLDFLAGS += -X main.Version=$(VERSION) GOLDFLAGS += -X main.Buildtime=$(BUILDTIME) GOFLAGS = -ldflags "$(GOLDFLAGS)"