Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/ffmpeg/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-03-24 07:35:36 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-03-24 07:35:36 +0100
commit94603f5a08263353a5b002e03193af11877f7651 (patch)
tree236fa3c2ff09b44d8f15acc3f9a76acd05b1c75a /extra/ffmpeg/PKGBUILD
parent9b6a384d79d41f8a603a91f5304a713603d2388c (diff)
extra/ffmpeg: fixed issues in FS32#239
Diffstat (limited to 'extra/ffmpeg/PKGBUILD')
-rw-r--r--extra/ffmpeg/PKGBUILD45
1 files changed, 44 insertions, 1 deletions
diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD
index 9bb8b8fb..366cfbbd 100644
--- a/extra/ffmpeg/PKGBUILD
+++ b/extra/ffmpeg/PKGBUILD
@@ -3,7 +3,6 @@ eval "$(
declare -f build | \
sed '
s/--enable-lto/--disable-lto/
- s/--enable-libmfx/--disable-libmfx/
'
)"
@@ -83,3 +82,47 @@ 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
+
+# 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
+