summaryrefslogtreecommitdiff
path: root/user/firefox-esr/disable-arm-flac.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-10 00:03:35 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-10 00:06:27 -0500
commit36bdfddebba10f293834570557e6f097ab6893e5 (patch)
treeb042088241f1acf221883a65ed6df08580d17c20 /user/firefox-esr/disable-arm-flac.patch
parentddc221fb76fd6de641e3fd3af9c4c99eb828e00d (diff)
downloadpackages-36bdfddebba10f293834570557e6f097ab6893e5.tar.gz
packages-36bdfddebba10f293834570557e6f097ab6893e5.tar.bz2
packages-36bdfddebba10f293834570557e6f097ab6893e5.tar.xz
packages-36bdfddebba10f293834570557e6f097ab6893e5.zip
user/{firefox-esr,thunderbird}: Fix ARM TEXTRELs
TEXTRELs are due to assembly code for FFTs in ffvpx/libavcodec. Since this is only used on "Android32 FLAC optimisation", it's likely not worth it for our use cases. Disable it. Fixes: #1015
Diffstat (limited to 'user/firefox-esr/disable-arm-flac.patch')
-rw-r--r--user/firefox-esr/disable-arm-flac.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/firefox-esr/disable-arm-flac.patch b/user/firefox-esr/disable-arm-flac.patch
new file mode 100644
index 000000000..fa1ba8753
--- /dev/null
+++ b/user/firefox-esr/disable-arm-flac.patch
@@ -0,0 +1,15 @@
+32-bit ARM assembler is mostly for Android32 accel anyway.
+
+It doesn't link properly on musl (TEXTRELs).
+
+--- firefox-91.13.0/toolkit/moz.configure.old 2023-10-09 10:40:18.231733637 +0000
++++ firefox-91.13.0/toolkit/moz.configure 2023-10-10 02:22:34.743712070 +0000
+@@ -1894,7 +1894,7 @@
+ flac_only = True
+ elif target.cpu == "x86_64":
+ flags = ["-D__x86_64__", "-DPIC", "-DELF", "-Pconfig_unix64.asm"]
+- elif target.cpu in ("x86", "arm", "aarch64"):
++ elif target.cpu in ("x86", "aarch64"):
+ flac_only = True
+ else:
+ enable = False