@@ -112,7 +112,7 @@ compile_object() {
compile_prog() {
local_cflags="$1"
- local_ldflags="$2"
+ local_ldflags="$2 -ltsan"
do_cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
}
@@ -174,12 +174,12 @@ audio_drv_list=""
block_drv_rw_whitelist=""
block_drv_ro_whitelist=""
host_cc="cc"
-libs_softmmu=""
-libs_tools=""
+libs_softmmu="-ltsan"
+libs_tools="-ltsan"
audio_pt_int=""
audio_win_int=""
cc_i386=i386-pc-linux-gnu-gcc
-libs_qga=""
+libs_qga="-ltsan"
debug_info="yes"
stack_protector=""