From 397d1bf764246716772004fe7ac8583a82c2a8a5 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Sun, 2 Mar 2008 17:53:01 -0700 Subject: [PATCH] check for broken versions of yasm --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 6f82da2f..f54fdda2 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 -- 2.47.3