summaryrefslogtreecommitdiff
path: root/net-misc/zerotier/files/zerotier-1.4.6-respect-ldflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/zerotier/files/zerotier-1.4.6-respect-ldflags.patch')
-rw-r--r--net-misc/zerotier/files/zerotier-1.4.6-respect-ldflags.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/zerotier/files/zerotier-1.4.6-respect-ldflags.patch b/net-misc/zerotier/files/zerotier-1.4.6-respect-ldflags.patch
new file mode 100644
index 000000000000..46e24fd7a928
--- /dev/null
+++ b/net-misc/zerotier/files/zerotier-1.4.6-respect-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/make-linux.mk 2019-09-05 11:02:16.000000000 -0700
++++ b/make-linux.mk 2019-09-27 21:01:21.000000000 -0700
+@@ -77,7 +77,7 @@
+ override CFLAGS+=-Wall -Wno-deprecated -pthread $(INCLUDES) -DNDEBUG $(DEFS)
+ CXXFLAGS?=-O3 -fstack-protector -fPIE
+ override CXXFLAGS+=-Wall -Wno-deprecated -std=c++11 -pthread $(INCLUDES) -DNDEBUG $(DEFS)
+- LDFLAGS=-pie -Wl,-z,relro,-z,now
++ LDFLAGS?=-pie -Wl,-z,relro,-z,now
+ STRIP?=strip
+ STRIP+=--strip-all
+ endif