aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zerotier-one/ppc64le-make-linux.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/zerotier-one/ppc64le-make-linux.patch')
-rw-r--r--testing/zerotier-one/ppc64le-make-linux.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/zerotier-one/ppc64le-make-linux.patch b/testing/zerotier-one/ppc64le-make-linux.patch
new file mode 100644
index 00000000000..7c867a61812
--- /dev/null
+++ b/testing/zerotier-one/ppc64le-make-linux.patch
@@ -0,0 +1,14 @@
+--- a/make-linux.mk
++++ b/make-linux.mk
+@@ -154,6 +154,11 @@
+ ZT_ARCHITECTURE=6
+ override DEFS+=-DZT_NO_TYPE_PUNNING
+ endif
++ifeq ($(CC_MACH),powerpc64le)
++ ZT_ARCHITECTURE=7
++ override DEFS+=-DZT_NO_TYPE_PUNNING
++endif
++
+
+ # Fail if system architecture could not be determined
+ ifeq ($(ZT_ARCHITECTURE),999)