diff options
author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2021-11-06 09:21:02 +0100 |
---|---|---|
committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2021-11-06 10:33:52 +0100 |
commit | d82fd7c2dd542693988f61fb15c020e3209ac7ec (patch) | |
tree | ab737eda21fca302488560810b0ab5c4aab71525 | |
parent | 3c3131b1c51fda96e574887eba34dc2b1e8f4966 (diff) |
gnu: webkitgtk: Disable SSE2 when not on x86_64.
* gnu/packages/webkit.scm (webkitgtk)[#:phases]: Add ‘disable-sse2’ if the
current (target) system is not an x86_64 one.
-rw-r--r-- | gnu/packages/webkit.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/webkit.scm b/gnu/packages/webkit.scm index a184cc9b32..5931402b98 100644 --- a/gnu/packages/webkit.scm +++ b/gnu/packages/webkit.scm @@ -295,6 +295,13 @@ acceleration in mind, leveraging common 3D graphics APIs for best performance.") (("libWPEBackend-fdo-([\\.0-9]+)\\.so" all version) (string-append wpebackend-fdo "/lib/" all))) #t))) + ,@(if (string-prefix? "x86_64" (or (%current-target-system) + (%current-system))) + '() + '((add-after 'unpack 'disable-sse2 + (lambda _ + (substitute* "Source/cmake/DetectSSE2.cmake" + (("CHECK_FOR_SSE2\\(\\)") "")))))) (add-before 'configure 'prepare-build-environment (lambda* (#:key inputs #:allow-other-keys) (setenv "CC" "clang") |