diff options
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/chromium/0003-chromium-Exclude-CRC32-for-32bit-arm.patch')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/chromium/0003-chromium-Exclude-CRC32-for-32bit-arm.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0003-chromium-Exclude-CRC32-for-32bit-arm.patch b/recipes-qt/qt5/qtwebengine/chromium/0003-chromium-Exclude-CRC32-for-32bit-arm.patch new file mode 100644 index 00000000..2f22f282 --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/chromium/0003-chromium-Exclude-CRC32-for-32bit-arm.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 2fed766cdca44dc67a508b26ea66feab47eb49fd Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 5 Feb 2019 14:32:20 -0800 | ||
4 | Subject: [PATCH] chromium: Exclude CRC32 for 32bit arm | ||
5 | |||
6 | This fixes build issues during cross compiling for linux using clang | ||
7 | |||
8 | Fixes | ||
9 | src/3rdparty/chromium/third_party/zlib/crc32_simd.c:184: undefined reference to `__crc32d' | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-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 | |||
17 | diff --git a/chromium/third_party/zlib/BUILD.gn b/chromium/third_party/zlib/BUILD.gn | ||
18 | index 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) { | ||