Add buildmode=pie to makefile

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-10-26 13:34:16 -04:00
parent 8c77d9ac72
commit b8c4d85564
6 changed files with 10 additions and 6 deletions

View File

@@ -45,6 +45,7 @@ GO_TAGS=$(if $(BUILDTAGS),-tags "$(BUILDTAGS)",)
GO_LDFLAGS=-ldflags "-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) -X $(PKG)/version.Package=$(PKG) $(EXTRA_LDFLAGS)"
TESTFLAGS_RACE=
GO_GCFLAGS=
#Detect the target os
include Makefile.OS