summaryrefslogtreecommitdiffstats
path: root/media/libpng/arm.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /media/libpng/arm.patch
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'media/libpng/arm.patch')
-rw-r--r--media/libpng/arm.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/media/libpng/arm.patch b/media/libpng/arm.patch
new file mode 100644
index 0000000000..7b788bfdf8
--- /dev/null
+++ b/media/libpng/arm.patch
@@ -0,0 +1,28 @@
+diff --git a/arm/arm_init.c b/arm/arm_init.c
+--- a/arm/arm_init.c
++++ b/arm/arm_init.c
+@@ -41,7 +41,7 @@
+ /* ARM Neon is expected to be available on the target CPU architecture. */
+ # error "PNG_ARM_NEON_CHECK_SUPPORTED must not be defined on this CPU arch"
+ # elif defined(__linux__)
+-# define PNG_ARM_NEON_FILE "contrib/arm-neon/linux.c"
++# define PNG_ARM_NEON_FILE "linux.c"
+ # else
+ # error "No support for run-time ARM Neon checking; use compile-time options"
+ # endif
+diff --git a/arm/filter_neon.S b/arm/filter_neon.S
+--- a/arm/filter_neon.S
++++ b/arm/filter_neon.S
+@@ -10,6 +10,12 @@
+ * and license in png.h
+ */
+
++/* These are required because Mozilla's moz.build system doesn't pass
++ * -DDefined macros to the assembler.
++ */
++#define PNG_READ_SUPPORTED
++#define MOZ_PNG_HAVE_ARM_NEON
++
+ /* This is required to get the symbol renames, which are #defines, and the
+ * definitions (or not) of PNG_ARM_NEON_OPT and PNG_ARM_NEON_IMPLEMENTATION.
+ */