diff -ur qemu-7.2.0.orig/configure qemu-7.2.0/configure --- qemu-7.2.0.orig/configure 2023-02-08 21:21:36.128176965 +0100 +++ qemu-7.2.0/configure 2023-02-08 21:22:06.431170014 +0100 @@ -275,7 +275,6 @@ debug_tcg="no" sanitizers="no" tsan="no" -fortify_source="yes" EXESUF="" modules="no" prefix="/usr/local" @@ -789,7 +788,6 @@ debug_tcg="yes" meson_option_parse --enable-debug-mutex "" meson_option_add -Doptimization=0 - fortify_source="no" ;; --enable-sanitizers) sanitizers="yes" ;; @@ -1691,20 +1689,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 @@ -2207,10 +2191,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"