--- /dev/null
+diff -ur qemu-7.1.0.orig/configure qemu-7.1.0/configure
+--- qemu-7.1.0.orig/configure 2022-09-02 16:07:34.783540992 +0200
++++ qemu-7.1.0/configure 2022-09-02 16:11:03.625989858 +0200
+@@ -299,7 +299,6 @@
+ debug_tcg="no"
+ sanitizers="no"
+ tsan="no"
+-fortify_source="yes"
+ EXESUF=""
+ modules="no"
+ prefix="/usr/local"
+@@ -819,7 +818,6 @@
+ debug_tcg="yes"
+ meson_option_parse --enable-debug-mutex ""
+ meson_option_add -Doptimization=0
+- fortify_source="no"
+ ;;
+ --enable-sanitizers) sanitizers="yes"
+ ;;
+@@ -1743,20 +1741,6 @@
+ ccache_cpp2=yes
+ fi
+
+-#################################################
+-# clang does not support glibc + FORTIFY_SOURCE.
+-
+-if test "$fortify_source" != "no"; then
+- if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
+- fortify_source="no";
+- elif test -n "$cxx" && has $cxx &&
+- echo | $cxx -dM -E - | grep __clang__ >/dev/null 2>&1 ; then
+- fortify_source="no";
+- else
+- fortify_source="yes"
+- fi
+-fi
+-
+ ##########################################
+ # checks for sanitizers
+
+@@ -2246,10 +2230,6 @@
+
+ write_c_skeleton
+
+-if test "$fortify_source" = "yes" ; then
+- QEMU_CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $QEMU_CFLAGS"
+-fi
+-
+ if test "$have_asan" = "yes"; then
+ QEMU_CFLAGS="-fsanitize=address $QEMU_CFLAGS"
+ QEMU_LDFLAGS="-fsanitize=address $QEMU_LDFLAGS"