void-packages/srcpkgs/qemu/patches/musl-ifunc.patch
2016-05-12 17:25:57 +02:00

11 lines
448 B
Diff

--- util/cutils.c.orig 2016-05-12 17:19:06.890739262 +0200
+++ util/cutils.c 2016-05-12 17:19:21.481711477 +0200
@@ -262,7 +262,7 @@ static size_t buffer_find_nonzero_offset
* restrict the gcc version to 4.9+ to prevent the failure.
*/
-#if defined CONFIG_AVX2_OPT && QEMU_GNUC_PREREQ(4, 9)
+#if defined(__GLIBC__) && defined CONFIG_AVX2_OPT && QEMU_GNUC_PREREQ(4, 9)
#pragma GCC push_options
#pragma GCC target("avx2")
#include <cpuid.h>