aboutsummaryrefslogtreecommitdiffstats
path: root/community/zerotier-one/make-linux.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/zerotier-one/make-linux.patch')
-rw-r--r--community/zerotier-one/make-linux.patch21
1 files changed, 2 insertions, 19 deletions
diff --git a/community/zerotier-one/make-linux.patch b/community/zerotier-one/make-linux.patch
index 287dd022a2..6cccf43b8f 100644
--- a/community/zerotier-one/make-linux.patch
+++ b/community/zerotier-one/make-linux.patch
@@ -1,17 +1,6 @@
--- a/make-linux.mk
+++ b/make-linux.mk
-@@ -238,6 +238,10 @@
- ZT_ARCHITECTURE=6
- override DEFS+=-DZT_NO_TYPE_PUNNING
- endif
-+ifeq ($(CC_MACH),powerpc64le)
-+ ZT_ARCHITECTURE=7
-+ override DEFS+=-DZT_NO_TYPE_PUNNING
-+endif
- ifeq ($(CC_MACH),s390x)
- ZT_ARCHITECTURE=16
- endif
-@@ -278,12 +278,12 @@
+@@ -278,8 +278,8 @@
# ARM32 hell -- use conservative CFLAGS
ifeq ($(ZT_ARCHITECTURE),3)
ifeq ($(shell if [ -e /usr/bin/dpkg ]; then dpkg --print-architecture; fi),armel)
@@ -21,10 +10,4 @@
+ override CXXFLAGS+=-march=armv6z -mfloat-abi=soft -msoft-float -mno-unaligned-access -marm
ZT_USE_ARM32_NEON_ASM_CRYPTO=0
else
-- override CFLAGS+=-march=armv5t -mno-unaligned-access -marm -fexceptions
-- override CXXFLAGS+=-march=armv5t -mno-unaligned-access -marm -fexceptions
-+ override CFLAGS+=-march=armv6z -mno-unaligned-access -marm -fexceptions
-+ override CXXFLAGS+=-march=armv6z -mno-unaligned-access -marm -fexceptions
- ZT_USE_ARM32_NEON_ASM_CRYPTO=0
- endif
- endif
+ override CFLAGS+=-mfloat-abi=hard -mfpu=vfp -mcpu=arm1176jzf-s -marm -mno-unaligned-access