Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed May 2, 2018
1 parent 9227045 commit f6bf158
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 10 deletions.
2 changes: 1 addition & 1 deletion zerotier/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=zerotier
PKG_VERSION:=1.2.6
PKG_VERSION:=1.2.8
PKG_RELEASE:=1

PKG_LICENSE:=GPL-3.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
From 58aa0c46860bc1700d3277222a9d5ddf37721d65 Mon Sep 17 00:00:00 2001
From c578216351a4daa3916265b39b14f7c23ef15c90 Mon Sep 17 00:00:00 2001
From: Moritz Warning <[email protected]>
Date: Mon, 23 Apr 2018 22:12:31 +0200
Subject: [PATCH 1/2] find miniupnpc.h in staging directory
Subject: [PATCH 1/3] find miniupnpc.h in staging directory

---
make-linux.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/make-linux.mk b/make-linux.mk
index c318c785..5b271b0a 100644
index 2e6a8632..0cd955d1 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -22,8 +22,8 @@ ONE_OBJS+=osdep/LinuxEthernetTap.o
Expand All @@ -23,5 +23,5 @@ index c318c785..5b271b0a 100644
override DEFS+=-DZT_USE_SYSTEM_MINIUPNPC
LDLIBS+=-lminiupnpc
--
2.16.3
2.17.0

33 changes: 33 additions & 0 deletions zerotier/patches/0002-remove-pie.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 7cfe751128d412a9b780ba5e4cb11908fc71cd3d Mon Sep 17 00:00:00 2001
From: Moritz Warning <[email protected]>
Date: Mon, 30 Apr 2018 16:14:30 +0200
Subject: [PATCH 2/3] remove -pie

fixes relocation "against `a local symbol' can not be used
when making a shared object; recompile with -fPIC" error
---
make-linux.mk | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/make-linux.mk b/make-linux.mk
index 0cd955d1..add1d3ae 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -71,11 +71,11 @@ ifeq ($(ZT_DEBUG),1)
# C25519 in particular is almost UNUSABLE in -O0 even on a 3ghz box!
node/Salsa20.o node/SHA512.o node/C25519.o node/Poly1305.o: CXXFLAGS=-Wall -O2 -g -pthread $(INCLUDES) $(DEFS)
else
- CFLAGS?=-O3 -fstack-protector -fPIE
+ CFLAGS?=-O3 -fstack-protector
override CFLAGS+=-Wall -Wno-deprecated -pthread $(INCLUDES) -DNDEBUG $(DEFS)
- CXXFLAGS?=-O3 -fstack-protector -fPIE
+ CXXFLAGS?=-O3 -fstack-protector
override CXXFLAGS+=-Wall -Wno-deprecated -std=c++11 -pthread $(INCLUDES) -DNDEBUG $(DEFS)
- LDFLAGS=-pie -Wl,-z,relro,-z,now
+ LDFLAGS=-Wl,-z,relro,-z,now
STRIP?=strip
STRIP+=--strip-all
endif
--
2.17.0

Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
From dacdb368a5a147e0f4f618e66423923bf301a5c2 Mon Sep 17 00:00:00 2001
From bfb1a652dbf897dc065d2a1414296eb145a2224b Mon Sep 17 00:00:00 2001
From: Moritz Warning <[email protected]>
Date: Mon, 23 Apr 2018 22:31:03 +0200
Subject: [PATCH 2/2] remove -march=armv5
Subject: [PATCH 3/3] remove -march=armv5

---
make-linux.mk | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/make-linux.mk b/make-linux.mk
index 5b271b0a..31ec4dcb 100644
index add1d3ae..49e14f70 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -231,12 +231,12 @@ endif
@@ -229,12 +229,12 @@ endif
# ARM32 hell -- use conservative CFLAGS
ifeq ($(ZT_ARCHITECTURE),3)
ifeq ($(shell if [ -e /usr/bin/dpkg ]; then dpkg --print-architecture; fi),armel)
Expand All @@ -29,5 +29,5 @@ index 5b271b0a..31ec4dcb 100644
endif

--
2.16.3
2.17.0

0 comments on commit f6bf158

Please sign in to comment.