From: Dan Fuhry Date: Fri, 19 Apr 2024 02:04:49 +0000 (-0400) Subject: disable PIE on non-native builds X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=1dea75c6168ec8184bfe8cd17c573ac369a3a2c2;p=runtime.git disable PIE on non-native builds --- diff --git a/Makefile b/Makefile index 9078fb1..6192578 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ endif ifeq ($(GOOS)/$(GOARCH),openbsd/amd64) GOBUILDFLAGS := -trimpath else -GOBUILDFLAGS := -buildmode=pie -trimpath +GOBUILDFLAGS := -trimpath endif ifeq ($(NATIVE_BUILD),1) -GOBUILDFLAGS += -tags=pkcs11 +GOBUILDFLAGS += -tags=pkcs11 -buildmode=pie endif GOMAINS =