From 7bf3158612a7ccdecd64e248b4038badf4b6cc0e Mon Sep 17 00:00:00 2001 From: Daniel P. Berrange Date: Jun 01 2015 13:43:36 +0000 Subject: Fix conditional enablement of tcmalloc Opps, cant have comments in the middle of multi-line continuations. --- 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