void-packages/srcpkgs/qemu/patches/musl-ifunc.patch

11 lines
392 B
Diff

--- util/cutils.c.orig 2016-09-05 07:39:30.602027263 +0200
+++ util/cutils.c 2016-09-05 07:39:47.473230538 +0200
@@ -263,7 +263,7 @@ static size_t buffer_find_nonzero_offset
return i * sizeof(VECTYPE);
}
-#if defined CONFIG_AVX2_OPT
+#if defined(__GLIBC__) && defined CONFIG_AVX2_OPT && QEMU_GNUC_PREREQ(4, 9)
#pragma GCC push_options
#pragma GCC target("avx2")
#include <cpuid.h>