From 7ca08160b8151c39e4fbd4711e175a4d0669280b Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 24 Dec 2018 15:56:00 +0100 Subject: community/chromium: add -fno-delete-null-pointer-checks needed for gcc --- community/chromium/APKBUILD | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'community/chromium') diff --git a/community/chromium/APKBUILD b/community/chromium/APKBUILD index da5ad03357..01944bc3bf 100644 --- a/community/chromium/APKBUILD +++ b/community/chromium/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Carlo Landmeter pkgname=chromium pkgver=71.0.3578.98 -pkgrel=0 +pkgrel=1 pkgdesc="chromium web browser" url="http://www.chromium.org/" arch="x86_64 aarch64 armhf armv7" @@ -171,6 +171,12 @@ prepare() { -delete done + # Work around bug in blink in which GCC 6 optimizes away null pointer checks + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833524 + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68853#c2 + sed -i '/config("compiler")/ a cflags_cc = [ "-fno-delete-null-pointer-checks" ]' \ + build/config/linux/BUILD.gn + msg "Replacing gyp files" python build/linux/unbundle/replace_gn_files.py --system-libraries \ ${use_system} @@ -191,9 +197,6 @@ build() { ############################################################## eval "$(base64 -d < $srcdir/google-api.keys)" -# export CC=clang -# export CXX=clang++ - local _ca="" #case "$CARCH" in # Chromium build as armv6 is broken, ffmpeg fails utterly -- cgit v1.2.3