mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 06:21:40 +01:00
Makefile: add -w to -ldflags to strip DWARF symbols
Compiling with this flag cuts down on the binary size by several megabytes.
This commit is contained in:
parent
38b8e54ba7
commit
85852733af
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -61,7 +61,7 @@ make_ldflags = $(2) -X $(PKG)/build.Commit=$(COMMIT) \
|
|||
-X $(PKG)/build.GoVersion=$(GOVERSION) \
|
||||
-X $(PKG)/build.RawTags=$(shell echo $(1) | sed -e 's/ /,/g')
|
||||
|
||||
LDFLAGS := -ldflags "$(call make_ldflags, ${tags})"
|
||||
LDFLAGS := -ldflags "$(call make_ldflags, ${tags}, -s -w)"
|
||||
DEV_LDFLAGS := -ldflags "$(call make_ldflags, $(DEV_TAGS))"
|
||||
ITEST_LDFLAGS := -ldflags "$(call make_ldflags, $(ITEST_TAGS))"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue