diff --git a/packager/third_party/libpng/libpng.gyp b/packager/third_party/libpng/libpng.gyp index 36571a515d..e9a4648498 100644 --- a/packager/third_party/libpng/libpng.gyp +++ b/packager/third_party/libpng/libpng.gyp @@ -33,6 +33,14 @@ 'dependencies': [ '../zlib/zlib.gyp:zlib', ], + # Disable all CPU-specific optimizations, which may fail to link because + # we don't have a CPU-specific set of source files. + 'defines': [ + 'PNG_ARM_NEON_OPT=0', + 'PNG_INTEL_SSE_OPT=0', + 'PNG_MIPS_MSA_OPT=0', + 'PNG_POWERPC_VSX_OPT=0', + ], 'direct_dependent_settings': { 'include_dirs': [ '.',