aboutsummaryrefslogtreecommitdiffstats
path: root/community/chromium/gcc-arm.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-02-21 11:43:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-02-21 13:28:44 +0000
commit9ed06c36d97148233ab5ece5d931a2b3c4571bf0 (patch)
tree67365f14e29693414b8a342dc8bd36af5ac4d840 /community/chromium/gcc-arm.patch
parent01e082330dad92dec25b85358b790686fd54ce68 (diff)
downloadaports-9ed06c36d97148233ab5ece5d931a2b3c4571bf0.tar.bz2
aports-9ed06c36d97148233ab5ece5d931a2b3c4571bf0.tar.xz
community/chromium: fix build on armv7
Diffstat (limited to 'community/chromium/gcc-arm.patch')
-rw-r--r--community/chromium/gcc-arm.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/chromium/gcc-arm.patch b/community/chromium/gcc-arm.patch
new file mode 100644
index 0000000000..4d917ff4a1
--- /dev/null
+++ b/community/chromium/gcc-arm.patch
@@ -0,0 +1,13 @@
+diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
+index b44bda6..1d159d8 100644
+--- ./third_party/zlib/BUILD.gn
++++ ./third_party/zlib/BUILD.gn
+@@ -63,7 +63,7 @@ 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.
+- if (!is_ios && !is_chromeos && !is_fuchsia) {
++ if (is_clang && !is_ios && !is_chromeos && !is_fuchsia) {
+ defines = [ "CRC32_ARMV8_CRC32" ]
+ if (is_android) {
+ defines += [ "ARMV8_OS_ANDROID" ]