[x264-devel] commit: check for broken versions of yasm (Loren Merritt )

git version control git at videolan.org
Mon Mar 3 02:00:28 CET 2008


x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Sun Mar  2 17:53:01 2008 -0700| [397d1bf764246716772004fe7ac8583a82c2a8a5]

check for broken versions of yasm

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=397d1bf764246716772004fe7ac8583a82c2a8a5
---

 configure |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 6f82da2..f54fdda 100755
--- a/configure
+++ b/configure
@@ -316,6 +316,11 @@ then
 fi
 
 if [ $ARCH = X86 -o $ARCH = X86_64 ] ; then
+    if [ $ARCH = X86 -a $pic = yes -a x$AS = xyasm -a\
+         "`yasm --version | head -n 1`" "<" "yasm 0.6.2" ] ; then
+         echo "yasm prior to 0.6.2 miscompiles PIC. trying nasm instead..."
+         AS=nasm
+    fi
     if as_check ; then
         CFLAGS="$CFLAGS -DHAVE_MMX"
         if as_check "pabsw xmm0, xmm0" ; then



More information about the x264-devel mailing list