www-client/chromium: enable -msse2 -mfpmath=sse -mmmx on x86
authorMike Gilbert <floppym@gentoo.org>
Sat, 24 Nov 2018 18:51:25 +0000 (13:51 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sat, 24 Nov 2018 18:51:36 +0000 (13:51 -0500)
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@gentoo.org>
www-client/chromium/chromium-70.0.3538.110.ebuild
www-client/chromium/chromium-71.0.3578.53.ebuild
www-client/chromium/chromium-72.0.3595.2.ebuild

index 9ed1afd580d11329adafa837b5534f6dc7e70dc4..0b329169badfe8b404c561e0be5b23ff026cd3f3 100644 (file)
@@ -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
index 3f45008f2cdc71eac75f42aa6c59adcfbdabd1bc..fd9d0c56bc09c7282783c552f0c4181a318524a8 100644 (file)
@@ -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
index 50e9aa7b82def126dd6e8bceb5d6af5abb47698a..7005f32011cb971ad0cebd33a0d9e1c34f4bb4cc 100644 (file)
@@ -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