From 997f7a71a6d35a5ae3596ed4641e08ca56ebaf74 Mon Sep 17 00:00:00 2001 From: Efraim Flashner <efraim@flashner.co.il> Date: Mon, 10 Jul 2023 10:17:31 +0300 Subject: [PATCH] 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. --- gnu/packages/webkit.scm | 7 +++++++ 1 file changed, 7 insertions(+) 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