builds a static (portable) binary now!

This commit is contained in:
Jeffrey Paul 2019-10-24 09:07:41 -07:00
parent 563bd4f16c
commit f16e140cac

View File

@ -13,7 +13,7 @@ GOLDFLAGS += -X main.Version=$(VERSION)
GOLDFLAGS += -X main.Buildtime=$(BUILDTIME)
GOLDFLAGS += -X main.Builduser=$(BUILDUSER)@$(BUILDHOST)
GOLDFLAGS += -X main.Buildarch=$(BUILDARCH)
GOFLAGS = -ldflags "$(GOLDFLAGS)"
GOFLAGS = -ldflags "-linkmode external -extldflags -static $(GOLDFLAGS)"
default: rundebug