[FFmpeg-devel] [PATCH] configure: check yasm/nasm for working pextrd opcode
Anssi Hannula
anssi.hannula
Sun Feb 6 06:58:02 CET 2011
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.
---
For the record, here are (some of?) the errors:
libavcodec/x86/vc1dsp_yasm.asm:329: error: operation size not specified
libavcodec/x86/vp8dsp.asm:967: error: operation size not specified
libavcodec/x86/vp8dsp.asm:968: error: operation size not specified
libavcodec/x86/vp8dsp.asm:969: error: operation size not specified
libavcodec/x86/vp8dsp.asm:1629: error: operation size not specified
libavcodec/x86/vp8dsp.asm:2854: error: operation size not specified
libavcodec/x86/vp8dsp.asm:2858: error: operation size not specified
configure | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 46f4e44..d670295 100755
--- a/configure
+++ b/configure
@@ -2671,7 +2671,7 @@ EOF
elf*) enabled debug && append YASMFLAGS $yasm_debug ;;
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"
fi
--
1.7.3
More information about the ffmpeg-devel
mailing list