Subject: [PATCH] gnu: webkitgtk: Disable SSE2 when not on x86_64.

From: Liliana Marie Prikler <[email-masked]>
Date: Fri, 5 Nov 2021 21:06:34 +0100

* gnu/packages/webkit.scm (webkitgtk)[#:phases]: Add ‘disable-sse2’.
---
 gnu/packages/webkit.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/webkit.scm b/gnu/packages/webkit.scm
index e54b680855..45150e185f 100644
--- a/gnu/packages/webkit.scm
+++ b/gnu/packages/webkit.scm
@@ -295,6 +295,11 @@ (define-public webkitgtk
                  (("libWPEBackend-fdo-([\\.0-9]+)\\.so" all version)
                   (string-append wpebackend-fdo "/lib/" all)))
                #t)))
+         (add-after 'unpack 'disable-sse2
+           (lambda* (#:key system #:allow-other-keys)
+             (unless (string-prefix? "x86_64" system)
+               (substitute* "Source/cmake/DetectSSE2.cmake"
+                 (("CHECK_FOR_SSE2\\(\\)") "")))))
          (add-before 'configure 'prepare-build-environment
            (lambda* (#:key inputs #:allow-other-keys)
              (setenv "CC" "clang")
-- 
2.33.1