From 1dea75c6168ec8184bfe8cd17c573ac369a3a2c2 Mon Sep 17 00:00:00 2001 From: Dan Fuhry Date: Thu, 18 Apr 2024 22:04:49 -0400 Subject: [PATCH] disable PIE on non-native builds --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = -- 2.50.1