1From b2e7a10448d984eb62810ad5c41720d61599cecc Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Tue, 5 Feb 2019 14:32:20 -0800 4Subject: [PATCH] chromium: Exclude CRC32 for 32bit arm 5 6This fixes build issues during cross compiling for linux using clang 7 8Fixes 9src/3rdparty/chromium/third_party/zlib/crc32_simd.c:184: undefined reference to `__crc32d' 10 11Upstream-Status: Pending 12Signed-off-by: Khem Raj <raj.khem@gmail.com> 13--- 14 chromium/third_party/zlib/BUILD.gn | 5 ++++- 15 1 file changed, 4 insertions(+), 1 deletion(-) 16 17diff --git a/chromium/third_party/zlib/BUILD.gn b/chromium/third_party/zlib/BUILD.gn 18index 891c2c34bfb..5ab519bd133 100644 19--- a/chromium/third_party/zlib/BUILD.gn 20+++ b/chromium/third_party/zlib/BUILD.gn 21@@ -115,8 +115,11 @@ if (use_arm_neon_optimizations) { 22 # Disabled for iPhone, as described in DDI0487C_a_armv8_arm: 23 # "All implementations of the ARMv8.1 architecture are required to 24 # implement the CRC32* instructions. These are optional in ARMv8.0." 25+ defines = [] 26 if (!is_ios) { 27- defines = [ "CRC32_ARMV8_CRC32" ] 28+ if (current_cpu == "arm64") { 29+ defines += [ "CRC32_ARMV8_CRC32" ] 30+ } 31 if (is_android) { 32 defines += [ "ARMV8_OS_ANDROID" ] 33 } else if (is_linux || is_chromeos) { 34