guix/gnu/packages/patches/webrtc-audio-processing-x86-no-sse.patch
Kaelyn Takata 77e99a79eb
gnu: webrtc-audio-processing: Fix build on i686 and powerpc64le.
* gnu/packages/audio.scm (webrtc-audio-processing)[arguments]: New field.
* gnu/packages/patches/webrtc-audio-processing-byte-order-pointer-size.patch,
gnu/packages/patches/webrtc-audio-processing-x86-no-sse.patch: New files.
* gnu/local.mk (dist_patch_DATA): Add them.

Change-Id: I3a95e5e2794df0d51e005672b5d3e2d98f27b767
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2024-08-31 10:45:47 +02:00

13 lines
440 B
Diff

https://bugs.gentoo.org/921140
https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/5
--- a/webrtc/rtc_base/system/arch.h
+++ b/webrtc/rtc_base/system/arch.h
@@ -34,7 +34,7 @@
#else
#define WEBRTC_ARCH_32_BITS
#endif
-#elif defined(_M_IX86) || defined(__i386__)
+#elif defined(__SSE__) && (defined(_M_IX86) || defined(__i386__))
#define WEBRTC_ARCH_X86_FAMILY
#define WEBRTC_ARCH_X86
#define WEBRTC_ARCH_32_BITS