[packages/webrtc-audio-processing] disable neon on not applicable archs

atler atler at pld-linux.org
Fri Dec 4 22:48:56 CET 2020


commit 902b8ee70ed93d084f6598835f881844a14960e2
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Dec 4 22:47:07 2020 +0100

    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}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/webrtc-audio-processing.git/commitdiff/902b8ee70ed93d084f6598835f881844a14960e2



More information about the pld-cvs-commit mailing list