Skip to content

Commit

Permalink
feat(make): disable symbol table and DWARF generation
Browse files Browse the repository at this point in the history
by adding -s and -w options to -ldflags

See: https://pkg.go.dev/cmd/link
  • Loading branch information
WaterLemons2k authored Jan 28, 2023
1 parent 4067132 commit 01d392d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DIR_SRC=.
DOCKER_CMD=docker

GO_ENV=CGO_ENABLED=0
GO_FLAGS=-ldflags="-X main.version=$(VERSION) -X 'main.buildTime=`date`' -extldflags -static" -trimpath
GO_FLAGS=-ldflags="-X main.version=$(VERSION) -X 'main.buildTime=`date`' -extldflags -static -s -w" -trimpath
GO=$(GO_ENV) $(shell which go)
GOROOT=$(shell `which go` env GOROOT)
GOPATH=$(shell `which go` env GOPATH)
Expand Down

0 comments on commit 01d392d

Please sign in to comment.