Skip to content

Commit

Permalink
-s disable symbol table -w disable DWARF generation
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbITCybErSeC authored and MaartendeKruijf committed Nov 22, 2024
1 parent c478379 commit eaba4e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit eaba4e0

Please sign in to comment.