From 7bf3158612a7ccdecd64e248b4038badf4b6cc0e Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 1 Jun 2015 14:43:22 +0100 Subject: [PATCH] Fix conditional enablement of tcmalloc Opps, cant have comments in the middle of multi-line continuations. --- qemu.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/qemu.spec b/qemu.spec index 6d597d7..5d74abe 100644 --- a/qemu.spec +++ b/qemu.spec @@ -587,6 +587,15 @@ ppc64abi32-linux-user s390x-linux-user sh4-linux-user sh4eb-linux-user \ sparc-linux-user sparc64-linux-user sparc32plus-linux-user \ unicore32-linux-user aarch64-softmmu" +# tcmalloc hangs on arm architecture +# https://bugzilla.redhat.com/show_bug.cgi?id=1226806 +%ifarch %{arm} + %define tcmallocflag --disable-tcmalloc +%else + %define tcmallocflag --enable-tcmalloc +%endif + + ./configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ @@ -605,13 +614,7 @@ unicore32-linux-user aarch64-softmmu" --audio-drv-list=pa,sdl,alsa,oss \ --enable-trace-backend=$tracebackends \ --enable-kvm \ -# tcmalloc hangs on arm architecture -# https://bugzilla.redhat.com/show_bug.cgi?id=1226806 -%ifarch %{arm} - --disable-tcmalloc \ -%else - --enable-tcmalloc \ -%endif + %{tcmallocflag} \ --with-sdlabi="2.0" \ --with-gtkabi="3.0" \ %ifarch s390