1 diff -ur qemu-7.1.0.orig/configure qemu-7.1.0/configure
2 --- qemu-7.1.0.orig/configure 2022-09-02 16:07:34.783540992 +0200
3 +++ qemu-7.1.0/configure 2022-09-02 16:11:03.625989858 +0200
14 meson_option_parse --enable-debug-mutex ""
15 meson_option_add -Doptimization=0
18 --enable-sanitizers) sanitizers="yes"
20 @@ -1743,20 +1741,6 @@
24 -#################################################
25 -# clang does not support glibc + FORTIFY_SOURCE.
27 -if test "$fortify_source" != "no"; then
28 - if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
29 - fortify_source="no";
30 - elif test -n "$cxx" && has $cxx &&
31 - echo | $cxx -dM -E - | grep __clang__ >/dev/null 2>&1 ; then
32 - fortify_source="no";
34 - fortify_source="yes"
38 ##########################################
39 # checks for sanitizers
41 @@ -2246,10 +2230,6 @@
45 -if test "$fortify_source" = "yes" ; then
46 - QEMU_CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $QEMU_CFLAGS"
49 if test "$have_asan" = "yes"; then
50 QEMU_CFLAGS="-fsanitize=address $QEMU_CFLAGS"
51 QEMU_LDFLAGS="-fsanitize=address $QEMU_LDFLAGS"