From 17393e10e28e6a972de83e3720cc34a45e266856 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 21 Apr 2020 20:31:01 +0200 Subject: extra/firefox: added -mmmx for i686 for libvpx and _mm_empty intrinsic --- extra/firefox/PKGBUILD | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'extra/firefox/PKGBUILD') diff --git a/extra/firefox/PKGBUILD b/extra/firefox/PKGBUILD index 6eaccdb4..31c7632d 100644 --- a/extra/firefox/PKGBUILD +++ b/extra/firefox/PKGBUILD @@ -174,3 +174,12 @@ eval "$( /msg2 "Profiling instrumented browser..."/,/.\/mach build/d ' )" + +# libvpx has some hard-coded compiler flags for MMX, SSE, SSE2, use the correct one +# per CARCH (75.0 uses an intrisic _mm_empty now, which required the corresponding +# architecture flag to be preset - before it was merely embedding some assembly +# code with EMMS +if [ "${CARCH}" = "i686" ]; then + CFLAGS="$CFLAGS -mmmx" + CXXFLAGS="$CXXFLAGS -mmmx" +fi -- cgit v1.2.3-70-g09d2