avx2 configure: Disable if static build
commit71fcd8eb6883605707309ad7921d43c8c02a938a
authorAaron Lindsay <alindsay@codeaurora.org>
Thu, 14 Jul 2016 19:38:14 +0000 (14 15:38 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jul 2016 14:21:43 +0000 (29 15:21 +0100)
treebc9fb80a8781644c417af00c04307abebe1f560e
parentcf4b61d5819da0b307502527c01d935bf07c9b38
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>
configure