1 diff -ur qemu-7.2.0.orig/configure qemu-7.2.0/configure
2 --- qemu-7.2.0.orig/configure 2023-02-08 21:21:36.128176965 +0100
3 +++ qemu-7.2.0/configure 2023-02-08 21:22:06.431170014 +0100
14 meson_option_parse --enable-debug-mutex ""
15 meson_option_add -Doptimization=0
18 --enable-sanitizers) sanitizers="yes"
20 @@ -1691,20 +1689,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 @@ -2207,10 +2191,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"