]> git.pld-linux.org Git - packages/firefox.git/commitdiff
try to fix build on i686
authorJan Palus <atler@pld-linux.org>
Tue, 18 Oct 2022 18:40:44 +0000 (20:40 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 18 Oct 2022 18:43:55 +0000 (20:43 +0200)
aec3 in libwebrtc tries to use sse on all x86 but does not appear to
enforce compiler flag for x86

firefox.spec
x86-flags.patch [new file with mode: 0644]

index 0673cba6e52abae6e7e4e8e7a6b2db1185a1b4af..e397826b884d9c37efd18bf0c4691760119e05b2 100644 (file)
@@ -256,6 +256,7 @@ Source196:  https://releases.mozilla.org/pub/firefox/releases/%{version}/linux-i6
 # Source196-md5:       d293727af26a20c1a883667ee06dcd3f
 Source197:     https://releases.mozilla.org/pub/firefox/releases/%{version}/linux-i686/xpi/zh-TW.xpi
 # Source197-md5:       de11ece098f9cbca048bbec6b3654c6f
+Patch0:                x86-flags.patch
 Patch4:                %{name}-prefs.patch
 Patch5:                %{name}-pld-bookmarks.patch
 Patch6:                %{name}-no-subshell.patch
@@ -2118,6 +2119,7 @@ unpack() {
 %define __unzip unpack
 %setup -q %(seq -f '-a %g' 100 197 | xargs)
 
+%patch0 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p2
diff --git a/x86-flags.patch b/x86-flags.patch
new file mode 100644 (file)
index 0000000..3cce7a6
--- /dev/null
@@ -0,0 +1,13 @@
+--- firefox-106.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build.orig   2022-10-10 18:05:26.000000000 +0200
++++ firefox-106.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build        2022-10-18 20:28:44.724270714 +0200
+@@ -258,6 +258,10 @@
+ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
++    CXXFLAGS += [
++        "-msse2"
++    ]
++
+     DEFINES["WEBRTC_ENABLE_AVX2"] = True
+     DEFINES["_GNU_SOURCE"] = True
This page took 0.200253 seconds and 4 git commands to generate.