We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfe0847 commit 717033dCopy full SHA for 717033d
Makefile
@@ -27,7 +27,10 @@ ifneq ($(STATIC),)
27
endif
28
GO_TAGS=$(if $(GO_BUILDTAGS),-tags "$(strip $(GO_BUILDTAGS))",)
29
30
-GO_LD_FLAGS=-ldflags '-s -w -X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) $(GO_EXTRA_LDFLAGS)
+GO_LD_FLAGS=-ldflags '-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) $(GO_EXTRA_LDFLAGS)
31
+ifeq ($(GODEBUG),)
32
+ GO_LD_FLAGS += -s -w
33
+endif
34
ifneq ($(STATIC),)
35
GO_LD_FLAGS += -extldflags "-static"
36
0 commit comments