Skip to content

Commit 034d10d

Browse files
author
jp
committed
-s disable symbol table -w disable DWARF generation
1 parent c7d2a47 commit 034d10d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ DIRECTORY = $(sort $(dir $(wildcard ./test/*/)))
55
VERSION = $(shell git describe --tags --dirty)
66
BUILDTIME := $(shell date '+%Y-%m-%dT%T%z')
77

8+
GOLDFLAGS += -s -w
89
GOLDFLAGS += -X main.Version=$(VERSION)
910
GOLDFLAGS += -X main.Buildtime=$(BUILDTIME)
1011
GOFLAGS = -ldflags "$(GOLDFLAGS)"

0 commit comments

Comments
 (0)