Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #50 from dweomer/build/mode
Browse files Browse the repository at this point in the history
build: add back -fno-PIC to extldflags
  • Loading branch information
dweomer authored May 16, 2020
2 parents 8595109 + 3360217 commit 96e2540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ endif
GO_BUILDTAGS += ${DEBUG_TAGS}
GO_TAGS=$(if $(GO_BUILDTAGS),-tags "$(GO_BUILDTAGS)",)

GO_EXTLDFLAGS ?= -static
GO_BUILDFLAGS ?= -buildmode=pie
GO_EXTLDFLAGS ?= -fno-PIC -static
GO_LDFLAGS ?= $(EXTRA_LDFLAGS)
GO_LDFLAGS += -X ${PKG}/pkg/version.Version=$(VERSION)
GO_LDFLAGS += -X ${PKG}/pkg/version.GitCommit=$(REVISION)
Expand Down

0 comments on commit 96e2540

Please sign in to comment.