summaryrefslogtreecommitdiff
path: root/user/libpng/libpng-fix-arm-neon.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-04 23:12:35 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-04 23:12:35 -0500
commit83a9f5030e0996889fdf90f9abc0ce1ea359ed19 (patch)
tree5841441dd0ee9cc649408f396c18f5bd961a92c4 /user/libpng/libpng-fix-arm-neon.patch
parent71d21c897b096b55cece96f3973feca75d608a0f (diff)
downloadpackages-83a9f5030e0996889fdf90f9abc0ce1ea359ed19.tar.gz
packages-83a9f5030e0996889fdf90f9abc0ce1ea359ed19.tar.bz2
packages-83a9f5030e0996889fdf90f9abc0ce1ea359ed19.tar.xz
packages-83a9f5030e0996889fdf90f9abc0ce1ea359ed19.zip
user/libpng: update metadata, no maintainer
Diffstat (limited to 'user/libpng/libpng-fix-arm-neon.patch')
-rw-r--r--user/libpng/libpng-fix-arm-neon.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/libpng/libpng-fix-arm-neon.patch b/user/libpng/libpng-fix-arm-neon.patch
new file mode 100644
index 000000000..2cd3f18c2
--- /dev/null
+++ b/user/libpng/libpng-fix-arm-neon.patch
@@ -0,0 +1,35 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -364,17 +364,21 @@
+ [case "$enableval" in
+ no|off)
+ # disable the default enabling on __ARM_NEON__ systems:
++ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
+ AC_DEFINE([PNG_ARM_NEON_OPT], [0],
+ [Disable ARM Neon optimizations])
+ # Prevent inclusion of the assembler files below:
+ enable_arm_neon=no;;
+ check)
++ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
+ AC_DEFINE([PNG_ARM_NEON_CHECK_SUPPORTED], [],
+ [Check for ARM Neon support at run-time]);;
+ api)
++ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
+ AC_DEFINE([PNG_ARM_NEON_API_SUPPORTED], [],
+ [Turn on ARM Neon optimizations at run-time]);;
+ yes|on)
++ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
+ AC_DEFINE([PNG_ARM_NEON_OPT], [2],
+ [Enable ARM Neon optimizations])
+ AC_MSG_WARN([--enable-arm-neon: please specify 'check' or 'api', if]
+--- a/pngpriv.h
++++ b/pngpriv.h
+@@ -127,7 +127,7 @@
+ * associated assembler code, pass --enable-arm-neon=no to configure
+ * or put -DPNG_ARM_NEON_OPT=0 in CPPFLAGS.
+ */
+-# if (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
++# if defined(PNG_ARM_NEON) && (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
+ defined(PNG_ALIGNED_MEMORY_SUPPORTED)
+ # define PNG_ARM_NEON_OPT 2
+ # else