--- ./tools/qemu-xen/configure.orig +++ ./tools/qemu-xen/configure @@ -1805,7 +1805,7 @@ EOF if compile_object "" ; then if has readelf; then - if readelf --syms $TMPO 2>/dev/null |grep -q "IFUNC.*foo"; then + if readelf --syms $TMPO 2>/dev/null |grep -q "IFUNC.*foo" && ldd $TMPO >/dev/null 2>&1; then avx2_opt="yes" fi fi