mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-21 09:02:00 -06:00
avx2 configure: Disable if static build
This avoids a segfault like the following for at least some 4.8 versions of gcc when configured with --static if avx2 instructions are also enabled: Program received signal SIGSEGV, Segmentation fault. buffer_find_nonzero_offset_ifunc () at ./util/cutils.c:333 333 { (gdb) bt #0 buffer_find_nonzero_offset_ifunc () at ./util/cutils.c:333 #1 0x0000000000939c58 in __libc_start_main () #2 0x0000000000419337 in _start () Signed-off-by: Aaron Lindsay <alindsay@codeaurora.org> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
cf4b61d581
commit
71fcd8eb68
1 changed files with 10 additions and 7 deletions
3
configure
vendored
3
configure
vendored
|
@ -1788,6 +1788,8 @@ fi
|
||||||
##########################################
|
##########################################
|
||||||
# avx2 optimization requirement check
|
# avx2 optimization requirement check
|
||||||
|
|
||||||
|
|
||||||
|
if test "$static" = "no" ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#pragma GCC push_options
|
#pragma GCC push_options
|
||||||
#pragma GCC target("avx2")
|
#pragma GCC target("avx2")
|
||||||
|
@ -1808,6 +1810,7 @@ if compile_object "" ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
# zlib check
|
# zlib check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue