]> TLD Linux GIT Repositories - packages/qemu.git/blob - qemu-no-fortify.patch
- merged two fixes from PLD, dropped test modules, dropped libslirp
[packages/qemu.git] / qemu-no-fortify.patch
1 diff -ur qemu-8.0.3.orig/configure qemu-8.0.3/configure
2 --- qemu-8.0.3.orig/configure   2023-07-22 14:25:13.756890443 +0200
3 +++ qemu-8.0.3/configure        2023-07-22 14:25:40.988278232 +0200
4 @@ -278,7 +278,6 @@
5  debug_tcg="no"
6  sanitizers="no"
7  tsan="no"
8 -fortify_source="yes"
9  EXESUF=""
10  modules="no"
11  prefix="/usr/local"
12 @@ -809,7 +808,6 @@
13        meson_option_parse --enable-debug-graph-lock ""
14        meson_option_parse --enable-debug-mutex ""
15        meson_option_add -Doptimization=0
16 -      fortify_source="no"
17    ;;
18    --enable-sanitizers) sanitizers="yes"
19    ;;
20 @@ -1718,20 +1716,6 @@
21      ccache_cpp2=yes
22  fi
23  
24 -#################################################
25 -# clang does not support glibc + FORTIFY_SOURCE.
26 -
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";
33 -  else
34 -    fortify_source="yes"
35 -  fi
36 -fi
37 -
38  ##########################################
39  # checks for sanitizers
40  
41 @@ -2234,10 +2218,6 @@
42  
43  write_c_skeleton
44  
45 -if test "$fortify_source" = "yes" ; then
46 -  QEMU_CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $QEMU_CFLAGS"
47 -fi
48 -
49  if test "$have_asan" = "yes"; then
50    QEMU_CFLAGS="-fsanitize=address $QEMU_CFLAGS"
51    QEMU_LDFLAGS="-fsanitize=address $QEMU_LDFLAGS"