diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-13 16:26:20 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-13 16:26:20 +0000 |
commit | 554b3dc27cef6db59f8a612c1e2e3c653f70e392 (patch) | |
tree | 2f238e8a8225b27e61bb11ffcdef9acf4920b246 /net-misc/zerotier/files | |
parent | aafdd1dcd9a66da0b1bcdfadbca62add48751897 (diff) |
gentoo auto-resync : 13:11:2023 - 16:26:20
Diffstat (limited to 'net-misc/zerotier/files')
-rw-r--r-- | net-misc/zerotier/files/zerotier-1.12.2-noexecstack.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-misc/zerotier/files/zerotier-1.12.2-noexecstack.patch b/net-misc/zerotier/files/zerotier-1.12.2-noexecstack.patch new file mode 100644 index 000000000000..2888577d13ba --- /dev/null +++ b/net-misc/zerotier/files/zerotier-1.12.2-noexecstack.patch @@ -0,0 +1,24 @@ +https://github.com/zerotier/ZeroTierOne/pull/2161 + +From e171384c19bb0c0dfe0368e4f249dd6a30d33748 Mon Sep 17 00:00:00 2001 +From: Alfred Wingate <parona@protonmail.com> +Date: Sun, 29 Oct 2023 13:48:07 +0200 +Subject: [PATCH] Append noexecstack to linker flags instead of assembler flags + +* Better compatibility with LLVM toolchain where clang -c doesn't + support the flag, but the linker does. LLD already defaults to + noexecstack, but adding it in the linker phase will avoid errors about + unsupported options. + +Signed-off-by: Alfred Wingate <parona@protonmail.com> +--- a/make-linux.mk ++++ b/make-linux.mk +@@ -358,7 +358,7 @@ override CFLAGS+=-fPIC -fPIE + override CXXFLAGS+=-fPIC -fPIE + + # Non-executable stack +-override ASFLAGS+=--noexecstack ++override LDFLAGS+=-Wl,-z,noexecstack + + .PHONY: all + all: one |