From d93d8d2dbb125956b0c076bb2388c45b002dfaee Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 24 Mar 2022 07:35:44 +0100 Subject: extra/ffmpeg4.4: fixed issues in FS32#239 --- extra/ffmpeg4.4/PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/extra/ffmpeg4.4/PKGBUILD b/extra/ffmpeg4.4/PKGBUILD index 9bb8b8fb..760194f7 100644 --- a/extra/ffmpeg4.4/PKGBUILD +++ b/extra/ffmpeg4.4/PKGBUILD @@ -3,7 +3,6 @@ eval "$( declare -f build | \ sed ' s/--enable-lto/--disable-lto/ - s/--enable-libmfx/--disable-libmfx/ ' )" @@ -83,3 +82,52 @@ if [ "$CARCH" == 'i486' ]; then ' )" fi + +# disable all modern optimizations +eval "$( + declare -f build | \ + sed ' + s|./configure|./configure --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-mmxext --disable-avx --disable-avx2 --disable-avx512| + ' +)" +# disabled specific assembly per subarchitecture +if [ "$CARCH" == 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s|./configure|./configure --disable-sse --disable-sse2 --disable-mmx| + ' + )" +fi +if [ "$CARCH" == 'i686' ]; then + eval "$( + declare -f build | \ + sed ' + s|./configure|./configure --disable-sse --disable-mmx| + ' + )" +fi + +eval "$( + declare -f build | \ + sed ' + s|./configure|./configure --disable-asm| + ' +)" + +# see FS32#239, basically everything breaks otherwise +eval "$( + declare -f build | \ + sed ' + s|./configure|./configure --disable-asm| + ' +)" +# see FS32#239, x264 and i486 result in missing symbols, no clue +if [ "$CARCH" == 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s|--enable-libx264|--disable-libx264| + ' + )" +fi -- cgit v1.2.3-70-g09d2