[FFmpeg-cvslog] configure: [loongson] adjust MMI check in configure
Jin Bo
git at videolan.org
Tue Aug 10 17:37:14 EEST 2021
ffmpeg | branch: master | Jin Bo <jinbo at loongson.cn> | Tue Aug 3 12:05:21 2021 +0800| [903c5d58f0311b12bd8127a545f1bf8549307f5c] | committer: Michael Niedermayer
configure: [loongson] adjust MMI check in configure
After standardizing the use of 'pxor' in commit 'ebedd26', FFmpeg
build failed with upstream compiler, for 'pxor' is not supported
in time. This patch helps to workaround the build failure by
checking whether 'pxor' is supported during configuration, if not,
MMI will be disabled.
Reviewed-by: yinshiyou-hf at loongson.cn
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=903c5d58f0311b12bd8127a545f1bf8549307f5c
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index f9fdf58bc3..82639ce057 100755
--- a/configure
+++ b/configure
@@ -5947,7 +5947,7 @@ elif enabled mips; then
enabled loongson3 && check_inline_asm loongson3 '"gsldxc1 $f0, 0($2, $3)"' '-mloongson-ext' && append MMIFLAGS '-mloongson-ext'
# MMI can be detected at runtime too
- enabled mmi && check_inline_asm mmi '"punpcklhw $f0, $f0, $f0"' '-mloongson-mmi' && append MMIFLAGS '-mloongson-mmi'
+ enabled mmi && check_inline_asm mmi '"pxor $f0, $f0, $f0"' '-mloongson-mmi' && append MMIFLAGS '-mloongson-mmi'
if enabled bigendian && enabled msa; then
disable msa
More information about the ffmpeg-cvslog
mailing list