From 88f1da1300534e2de803cfae74bd95da83064d30 Mon Sep 17 00:00:00 2001 From: "Stuart D. Gathman" Date: Wed, 18 Jul 2018 21:42:43 -0400 Subject: [PATCH] mtune=generic not supported on s390x --- cjdns.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cjdns.spec b/cjdns.spec index 4d1b86a..6a4f0d5 100644 --- a/cjdns.spec +++ b/cjdns.spec @@ -289,7 +289,11 @@ EOF chmod a+x cjdns-up.sh %if %{generic_build} +%ifarch s390x +sed -i -e 's/-march=native/-mtune=native/' node_build/make.js +%else sed -i -e 's/-march=native/-mtune=generic/' node_build/make.js +%endif rm node_build/dependencies/cnacl/node_build/plans/*_AVX_plan.json # Leaving SSE2 code in since x86 is secondary arch and pretty much everyone # is going to have SSE2, except things like XO-1 which needs custom build.