diff --git a/qemu.changes b/qemu.changes index 28771992..c3ced66d 100644 --- a/qemu.changes +++ b/qemu.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Dec 13 15:31:38 UTC 2021 - Dirk Müller + +- disable QOM cast debug outside the testsuite as the corresponding + asserts show up occassionally as top #1 in perf(1) traces under + heavy virtio load +- enable LTO when we'd like to use LTO + ------------------------------------------------------------------- Tue Dec 7 18:17:14 UTC 2021 - Dario Faggioli diff --git a/qemu.spec b/qemu.spec index b7f08ff3..5c888951 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1294,6 +1294,12 @@ cd %blddir --disable-stack-protector \ --disable-strip \ --disable-tcg-interpreter \ +%if "%{_lto_cflags}" != "%{nil}" + --enable-lto \ +%endif +%if "%flavor" != "testsuite" + --disable-qom-cast-debug \ +%endif --with-git-submodules=ignore \ %if "%{name}" != "qemu-linux-user" --with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \ diff --git a/qemu.spec.in b/qemu.spec.in index 5627c08c..ed6fc55c 100644 --- a/qemu.spec.in +++ b/qemu.spec.in @@ -1125,6 +1125,12 @@ cd %blddir --disable-stack-protector \ --disable-strip \ --disable-tcg-interpreter \ +%if "%{_lto_cflags}" != "%{nil}" + --enable-lto \ +%endif +%if "%flavor" != "testsuite" + --disable-qom-cast-debug \ +%endif --with-git-submodules=ignore \ %if "%{name}" != "qemu-linux-user" --with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \