commit: a21438f69e4bb2a0ecebbfa2cd49a7fb9d6d7587 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> AuthorDate: Fri May 6 17:26:35 2022 +0000 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> CommitDate: Fri May 6 17:26:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a21438f6
www-client/chromium: fix cross-compile for ppc64/x86 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> 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 7c93391a4534..f9008a0c83e7 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