]> go.fuhry.dev Git - runtime.git/commitdiff
disable PIE on non-native builds
authorDan Fuhry <dan@fuhry.com>
Fri, 19 Apr 2024 02:04:49 +0000 (22:04 -0400)
committerDan Fuhry <dan@fuhry.com>
Fri, 19 Apr 2024 02:04:49 +0000 (22:04 -0400)
Makefile

index 9078fb13be053c3ed498601828a4988ce89a85c6..6192578b3fda227e6c5d0bfb239b5102fb02f6d9 100644 (file)
--- 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 =