Commit Debian 3.0 (quilt) metadata
authorPeter Michael Green <plugwash@raspbian.org>
Tue, 15 Feb 2022 19:29:49 +0000 (19:29 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 15 Feb 2022 19:29:49 +0000 (19:29 +0000)
[dgit (8.5) quilt-fixup]

debian/patches/build-swgl-with-clang-rather-than-gcc-to.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/build-swgl-with-clang-rather-than-gcc-to.patch b/debian/patches/build-swgl-with-clang-rather-than-gcc-to.patch
new file mode 100644 (file)
index 0000000..5bd9342
--- /dev/null
@@ -0,0 +1,23 @@
+From: Peter Michael Green <plugwash@raspbian.org>
+Date: Tue, 15 Feb 2022 04:46:48 +0000
+X-Dgit-Generated: 91.6.0esr-1~deb10u1+rpi1 19366e4892794b06a3aa6d9087c2e92a6c246dee
+Subject: Build swgl with clang rather than gcc to avoid internal compiler error.
+
+
+---
+
+--- firefox-esr-91.6.0esr.orig/gfx/wr/swgl/build.rs
++++ firefox-esr-91.6.0esr/gfx/wr/swgl/build.rs
+@@ -129,6 +129,12 @@ fn main() {
+     shaders.sort();
++    // force build with clang to work around internal compiler error in gcc
++    if let Ok(target) = std::env::var("TARGET") {
++        std::env::set_var(format!("CC_{}", target),"clang");
++        std::env::set_var(format!("CXX_{}", target),"clang++");
++    }
++
+     // We need to ensure that the C preprocessor does not pull compiler flags from
+     // the host or target environment. Set up a SWGLPP target with empty flags to
+     // work around this.
index b617361ef54a13ddf3a102bf3f5c326d4b21d254..c7934b91a80cd12f4280c519c27bca1ebffe5092 100644 (file)
@@ -26,3 +26,4 @@ try-to-disable-neon.patch
 try-harder-to-disable-neon.patch
 disable-neon-in-qcms.patch
 use-a-define-instead-of-a-typedef-for-do.patch
+build-swgl-with-clang-rather-than-gcc-to.patch