From a21438f69e4bb2a0ecebbfa2cd49a7fb9d6d7587 Mon Sep 17 00:00:00 2001 From: Stephan Hartmann Date: Fri, 6 May 2022 19:26:35 +0200 Subject: [PATCH] www-client/chromium: fix cross-compile for ppc64/x86 Signed-off-by: Stephan Hartmann --- www-client/chromium/chromium-101.0.4951.54.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www-client/chromium/chromium-101.0.4951.54.ebuild b/www-client/chromium/chromium-101.0.4951.54.ebuild index 7c93391a45349..f9008a0c83e76 100644 --- a/www-client/chromium/chromium-101.0.4951.54.ebuild +++ b/www-client/chromium/chromium-101.0.4951.54.ebuild @@ -761,6 +761,14 @@ src_configure() { # Disable fatal linker warnings, bug 506268. myconf_gn+=" fatal_linker_warnings=false" + # Disable external code space for V8 for ppc64. It is disabled for ppc64 + # by default, but cross-compiling on amd64 enables it again. + if tc-is-cross-compiler; then + if ! use amd64 && ! use arm64; then + myconf_gn+=" v8_enable_external_code_space=false" + fi + fi + # Bug 491582. export TMPDIR="${WORKDIR}/temp" mkdir -p -m 755 "${TMPDIR}" || die