summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-07-10 10:17:31 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-07-10 10:57:51 +0300
commit997f7a71a6d35a5ae3596ed4641e08ca56ebaf74 (patch)
tree67bbdc7e6e6adbfb95f228caee2599f5ced17f0f /gnu/packages
parent126a91888c921179e90090c4c023d6285bfd44a0 (diff)
downloadguix-997f7a71a6d35a5ae3596ed4641e08ca56ebaf74.tar.gz
gnu: webkitgtk: Fix building on i686-linux.
* gnu/packages/webkit.scm (webkitgtk)[arguments]: When building for
i686-linux add a phase to not include optimizations used by
x86_64-linux.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/webkit.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/webkit.scm b/gnu/packages/webkit.scm
index 5ab93ad9eb..f47fff25d2 100644
--- a/gnu/packages/webkit.scm
+++ b/gnu/packages/webkit.scm
@@ -199,6 +199,13 @@ engine that uses Wayland for graphics output.")
                 (substitute* "Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp"
                   (("libWPEBackend-fdo-[\\.0-9]+\\.so" all)
                    (search-input-file inputs (string-append "lib/" all)))))))
+          #$@(if (target-x86-32?)
+                 ;; Don't include x86intrin.h on i686-linux.
+                 '((add-after 'unpack 'fix-headers
+                     (lambda _
+                       (substitute* "Source/ThirdParty/ANGLE/src/common/platform.h"
+                         (("\\|\\| defined\\(__i386__\\)") "")))))
+                 '())
           #$@(if (target-x86-64?)
                  '()
                  '((add-after 'unpack 'disable-sse2