From 902b8ee70ed93d084f6598835f881844a14960e2 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Fri, 4 Dec 2020 22:47:07 +0100 Subject: [PATCH] disable neon on not applicable archs --- webrtc-audio-processing.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webrtc-audio-processing.spec b/webrtc-audio-processing.spec index 2e84856..0fab234 100644 --- a/webrtc-audio-processing.spec +++ b/webrtc-audio-processing.spec @@ -3,6 +3,14 @@ # AudioProcessing module from the WebRTC[1] project. The ideal case is that we # make no changes to the code to make tracking upstream code easy. # [1] http://code.google.com/p/webrtc/ +# +# Conditional build: +%bcond_without neon # without ARM NEON instructions + +%ifnarch armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl aarch64 +%undefine with_neon +%endif + Summary: WebRTC Audio Processing library Summary(pl.UTF-8): Biblioteka WebRTC Audio Processing Name: webrtc-audio-processing @@ -71,6 +79,7 @@ Biblioteka statyczna WebRTC Audio Processing. %{__autoconf} %{__automake} %configure \ + %{!?with_neon:--disable-neon} \ --disable-silent-rules %{__make} -- 2.44.0