summaryrefslogtreecommitdiff
path: root/net-misc/zerotier/files/zerotier-1.10.1-respect-ldflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/zerotier/files/zerotier-1.10.1-respect-ldflags.patch')
-rw-r--r--net-misc/zerotier/files/zerotier-1.10.1-respect-ldflags.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/zerotier/files/zerotier-1.10.1-respect-ldflags.patch b/net-misc/zerotier/files/zerotier-1.10.1-respect-ldflags.patch
new file mode 100644
index 000000000000..41a42197c17d
--- /dev/null
+++ b/net-misc/zerotier/files/zerotier-1.10.1-respect-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/make-linux.mk
++++ b/make-linux.mk
+@@ -70,7 +70,7 @@ else
+ override CFLAGS+=-Wall -Wno-deprecated -pthread $(INCLUDES) -DNDEBUG $(DEFS)
+ CXXFLAGS?=-O3 -fstack-protector
+ override CXXFLAGS+=-Wall -Wno-deprecated -std=c++17 -pthread $(INCLUDES) -DNDEBUG $(DEFS)
+- LDFLAGS=-pie -Wl,-z,relro,-z,now
++ LDFLAGS?=-pie -Wl,-z,relro,-z,now
+ RUSTFLAGS=--release
+ endif
+