aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-Exclude-CRC32-for-32bit-arm.patch
blob: e0c0dbb6e2d9e08c44d3072f7f160ec35f9c9ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 432514e835f5bfefc2bb88adbb2ba468e9c07beb Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 5 Feb 2019 14:32:20 -0800
Subject: [PATCH] chromium: Exclude CRC32 for 32bit arm

This fixes build issues during cross compiling for linux using clang

Fixes
src/3rdparty/chromium/third_party/zlib/crc32_simd.c:184: undefined reference to `__crc32d'

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 chromium/third_party/zlib/BUILD.gn | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/chromium/third_party/zlib/BUILD.gn
+++ b/chromium/third_party/zlib/BUILD.gn
@@ -70,8 +70,11 @@ config("zlib_arm_crc32_config") {
     #  - ChromeOS has wrapper scripts that are borking the compiler flags.
     #  - Fuchsia just added a syscall for feature detection.
     # TODO(cavalcantii): crbug.com/810125.
+    defines = []
     if (!is_ios && !is_chromeos && !is_fuchsia) {
-      defines = [ "CRC32_ARMV8_CRC32" ]
+      if (current_cpu == "arm64") {
+        defines += [ "CRC32_ARMV8_CRC32" ]
+      }
       if (is_android) {
         defines += [ "ARMV8_OS_ANDROID" ]
       } else if (is_linux || is_chromeos) {