diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-09 14:30:04 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-09 14:30:04 +0200 |
commit | 490c7bd4eb2d4bd5e6d379fd031da804715fcf3f (patch) | |
tree | e5041dfe81e0cdb0c980d2f7330ef6fe755e9989 /main/libpng | |
parent | c4bff764a7426da61a326b25879755015b3b5b58 (diff) | |
download | aports-490c7bd4eb2d4bd5e6d379fd031da804715fcf3f.tar.bz2 aports-490c7bd4eb2d4bd5e6d379fd031da804715fcf3f.tar.xz |
main/libpng: add missing patch
Diffstat (limited to 'main/libpng')
-rw-r--r-- | main/libpng/libpng-fix-arm-neon.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/libpng/libpng-fix-arm-neon.patch b/main/libpng/libpng-fix-arm-neon.patch new file mode 100644 index 0000000000..e424957ce2 --- /dev/null +++ b/main/libpng/libpng-fix-arm-neon.patch @@ -0,0 +1,39 @@ +diff --git a/configure.ac b/configure.ac +index 4fb0778..930bf50 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -283,17 +283,21 @@ AC_ARG_ENABLE([arm-neon], + [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] +diff --git a/pngpriv.h b/pngpriv.h +index 1997503..789206f 100644 +--- a/pngpriv.h ++++ b/pngpriv.h +@@ -125,7 +125,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 |