commit:     a1825582f83d51485e1ed6e668fc1f55a5814a56
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 24 18:51:25 2018 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Nov 24 18:51:36 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1825582

www-client/chromium: enable -msse2 -mfpmath=sse -mmmx on x86

This is normally done by the build system, but we started patching that
out to avoid build issues on ARM.

Closes: https://bugs.gentoo.org/671412
Package-Manager: Portage-2.3.51_p14, Repoman-2.3.12_p5
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 www-client/chromium/chromium-70.0.3538.110.ebuild | 4 ++++
 www-client/chromium/chromium-71.0.3578.53.ebuild  | 4 ++++
 www-client/chromium/chromium-72.0.3595.2.ebuild   | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/www-client/chromium/chromium-70.0.3538.110.ebuild 
b/www-client/chromium/chromium-70.0.3538.110.ebuild
index 9ed1afd580d..0b329169bad 100644
--- a/www-client/chromium/chromium-70.0.3538.110.ebuild
+++ b/www-client/chromium/chromium-70.0.3538.110.ebuild
@@ -512,6 +512,10 @@ src_configure() {
        elif [[ $myarch = x86 ]] ; then
                myconf_gn+=" target_cpu=\"x86\""
                ffmpeg_target_arch=ia32
+
+               # This is normally defined by compiler_cpu_abi in
+               # build/config/compiler/BUILD.gn, but we patch that part out.
+               append-flags -msse2 -mfpmath=sse -mmmx
        elif [[ $myarch = arm64 ]] ; then
                myconf_gn+=" target_cpu=\"arm64\""
                ffmpeg_target_arch=arm64

diff --git a/www-client/chromium/chromium-71.0.3578.53.ebuild 
b/www-client/chromium/chromium-71.0.3578.53.ebuild
index 3f45008f2cd..fd9d0c56bc0 100644
--- a/www-client/chromium/chromium-71.0.3578.53.ebuild
+++ b/www-client/chromium/chromium-71.0.3578.53.ebuild
@@ -511,6 +511,10 @@ src_configure() {
        elif [[ $myarch = x86 ]] ; then
                myconf_gn+=" target_cpu=\"x86\""
                ffmpeg_target_arch=ia32
+
+               # This is normally defined by compiler_cpu_abi in
+               # build/config/compiler/BUILD.gn, but we patch that part out.
+               append-flags -msse2 -mfpmath=sse -mmmx
        elif [[ $myarch = arm64 ]] ; then
                myconf_gn+=" target_cpu=\"arm64\""
                ffmpeg_target_arch=arm64

diff --git a/www-client/chromium/chromium-72.0.3595.2.ebuild 
b/www-client/chromium/chromium-72.0.3595.2.ebuild
index 50e9aa7b82d..7005f32011c 100644
--- a/www-client/chromium/chromium-72.0.3595.2.ebuild
+++ b/www-client/chromium/chromium-72.0.3595.2.ebuild
@@ -511,6 +511,10 @@ src_configure() {
        elif [[ $myarch = x86 ]] ; then
                myconf_gn+=" target_cpu=\"x86\""
                ffmpeg_target_arch=ia32
+
+               # This is normally defined by compiler_cpu_abi in
+               # build/config/compiler/BUILD.gn, but we patch that part out.
+               append-flags -msse2 -mfpmath=sse -mmmx
        elif [[ $myarch = arm64 ]] ; then
                myconf_gn+=" target_cpu=\"arm64\""
                ffmpeg_target_arch=arm64

Reply via email to