提交 5fb06ffa 编写于 作者: A Anssi Hannula 提交者: Michael Niedermayer

configure: check yasm/nasm for working pextrd opcode

NASM versions older than 2.08 fail to build ffmpeg with several
"error: operation size not specified" errors but this is not caught in
configure.

Fix that by checking if "pextrd [eax], xmm0, 1" works in configure.
Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 48545a8f)
上级 21b032c4
...@@ -2672,7 +2672,7 @@ EOF ...@@ -2672,7 +2672,7 @@ EOF
elf*) enabled debug && append YASMFLAGS $yasm_debug ;; elf*) enabled debug && append YASMFLAGS $yasm_debug ;;
esac esac
check_yasm "pabsw xmm0, xmm0" && enable yasm || check_yasm "pextrd [eax], xmm0, 1" && enable yasm ||
die "yasm not found, use --disable-yasm for a crippled build" die "yasm not found, use --disable-yasm for a crippled build"
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册