diff options
author | Andrew Selle <aselle@google.com> | 2018-05-08 11:10:23 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-08 15:31:19 -0700 |
commit | f0a506f67fe316c3adb282b58b7087e11d7c493f (patch) | |
tree | 821d58fd21eb26a085bb27300eac1c61c06b342c /third_party/png_fix_rpi.patch | |
parent | 83aa3239b45175fff56e85b07a68caf1e182b455 (diff) |
Fix Raspberry Pi build by making PNG not try to use Neon (by autodetect).
This involves patching to override the png neon option. In the future
it might be worth enabling PNG optimization.
PiperOrigin-RevId: 195846513
Diffstat (limited to 'third_party/png_fix_rpi.patch')
-rw-r--r-- | third_party/png_fix_rpi.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/png_fix_rpi.patch b/third_party/png_fix_rpi.patch new file mode 100644 index 0000000000..80da7b3c06 --- /dev/null +++ b/third_party/png_fix_rpi.patch @@ -0,0 +1,16 @@ +diff -r -u /tmp/libpng-1.6.34/scripts/pnglibconf.h.prebuilt ./scripts/pnglibconf.h.prebuilt +--- /tmp/libpng-1.6.34/scripts/pnglibconf.h.prebuilt 2017-09-29 01:42:33.000000000 -0700 ++++ ./scripts/pnglibconf.h.prebuilt 2018-05-01 09:51:24.719318242 -0700 +@@ -20,6 +20,12 @@ + #define PNG_ALIGNED_MEMORY_SUPPORTED + /*#undef PNG_ARM_NEON_API_SUPPORTED*/ + /*#undef PNG_ARM_NEON_CHECK_SUPPORTED*/ ++ ++/* Workaround not having a great build file by forcing ++ * png filter optimization to be disabled on arm */ ++#define PNG_ARM_NEON_OPT 0 ++ ++ + /*#undef PNG_POWERPC_VSX_API_SUPPORTED*/ + /*#undef PNG_POWERPC_VSX_CHECK_SUPPORTED*/ + #define PNG_BENIGN_ERRORS_SUPPORTED |