aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/xenqemu-configure-ifunc.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-05-18 20:16:57 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-05-18 20:17:23 +0000
commitfcb06dcf29ac9492f37108cfbf665d058f7f6d0d (patch)
treeef456c0760b1caeeabda008bf803e770a198347d /main/xen/xenqemu-configure-ifunc.patch
parent18a87b11315f59ba02a924fb63c0b24bde02a9ca (diff)
downloadaports-fcb06dcf29ac9492f37108cfbf665d058f7f6d0d.tar.bz2
aports-fcb06dcf29ac9492f37108cfbf665d058f7f6d0d.tar.xz
main/xen: fix ifunc usage on qemu-xen domain model
Diffstat (limited to 'main/xen/xenqemu-configure-ifunc.patch')
-rw-r--r--main/xen/xenqemu-configure-ifunc.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/xen/xenqemu-configure-ifunc.patch b/main/xen/xenqemu-configure-ifunc.patch
new file mode 100644
index 0000000000..a201e141e6
--- /dev/null
+++ b/main/xen/xenqemu-configure-ifunc.patch
@@ -0,0 +1,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