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

Commit 96e2540

Browse files
authored
Merge pull request #50 from dweomer/build/mode
build: add back -fno-PIC to extldflags
2 parents 8595109 + 3360217 commit 96e2540

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ endif
7373
GO_BUILDTAGS += ${DEBUG_TAGS}
7474
GO_TAGS=$(if $(GO_BUILDTAGS),-tags "$(GO_BUILDTAGS)",)
7575

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

0 commit comments

Comments
 (0)