forked from pool/webkit2gtk3
Accepting request 827290 from GNOME:Factory
- Add no-forced-sse.patch, cure execution of illegal instruction in i586 firefox. OBS-URL: https://build.opensuse.org/request/show/827290 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/webkit2gtk3?expand=0&rev=100
This commit is contained in:
commit
475525316a
37
no-forced-sse.patch
Normal file
37
no-forced-sse.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: 2020-01-30 14:15:51.612533365 +0100
|
||||
|
||||
cmake tests whether the compiler can emit SSE, which is the wrongest of all
|
||||
options. (At the very least, a build system would check the buildhost's actual
|
||||
CPU feature set; while not great, there are convincable usecases for doing
|
||||
that.)
|
||||
|
||||
Disable unconditional emission of -msse2 into the command line.
|
||||
On x86_64 where SSE2 is always available, gcc already implies -msse2
|
||||
anyway, so there should not be anything lost by removing this block
|
||||
of makefilery.
|
||||
|
||||
---
|
||||
Source/cmake/WebKitCompilerFlags.cmake | 9 ---------
|
||||
1 file changed, 9 deletions(-)
|
||||
|
||||
Index: webkitgtk-2.26.3/Source/cmake/WebKitCompilerFlags.cmake
|
||||
===================================================================
|
||||
--- webkitgtk-2.26.3.orig/Source/cmake/WebKitCompilerFlags.cmake
|
||||
+++ webkitgtk-2.26.3/Source/cmake/WebKitCompilerFlags.cmake
|
||||
@@ -137,15 +137,6 @@ if (COMPILER_IS_GCC_OR_CLANG)
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-expansion-to-defined)
|
||||
endif ()
|
||||
-
|
||||
- # Force SSE2 fp on x86 builds.
|
||||
- if (WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING)
|
||||
- WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-msse2 -mfpmath=sse)
|
||||
- include(DetectSSE2)
|
||||
- if (NOT SSE2_SUPPORT_FOUND)
|
||||
- message(FATAL_ERROR "SSE2 support is required to compile WebKit")
|
||||
- endif ()
|
||||
- endif ()
|
||||
endif ()
|
||||
|
||||
if (COMPILER_IS_GCC_OR_CLANG AND NOT MSVC)
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 6 08:22:08 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Add no-forced-sse.patch, cure execution of illegal instruction
|
||||
in i586 firefox.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 29 15:18:24 UTC 2020 - Michael Gorse <mgorse@suse.com>
|
||||
|
||||
|
@ -45,6 +45,8 @@ Source99: webkit2gtk3.keyring
|
||||
Patch0: webkit2gtk3-fdo-soname.patch
|
||||
# PATCH-FIX-OPENSUSE webkit-process.patch boo#1159329 mgorse@suse.com -- use single web process for evolution and geary.
|
||||
Patch1: webkit-process.patch
|
||||
# PATCH-FIX-OPENSUSE no-forced-sse.patch jengelh@iani.de -- cure execution of illegal instruction in i586 firefox.
|
||||
Patch2: no-forced-sse.patch
|
||||
|
||||
BuildRequires: Mesa-libEGL-devel
|
||||
BuildRequires: Mesa-libGL-devel
|
||||
@ -274,6 +276,7 @@ A small test browswer from webkit, useful for testing features.
|
||||
%if 0%{?suse_version} <= 1500 && 0%{?sle_version} < 150200
|
||||
%patch1 -p1
|
||||
%endif
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%define _lto_cflags %{nil}
|
||||
|
Loading…
Reference in New Issue
Block a user