aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/xenqemu-configure-ifunc.patch
blob: a201e141e6d16bce139c92c58542105bb2c392f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./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