From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxcCY-00056H-84 for qemu-devel@nongnu.org; Thu, 19 Jun 2014 09:16:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxcCM-00050V-TJ for qemu-devel@nongnu.org; Thu, 19 Jun 2014 09:16:26 -0400 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:46805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxcCM-00050F-Lu for qemu-devel@nongnu.org; Thu, 19 Jun 2014 09:16:14 -0400 Received: by mail-la0-f51.google.com with SMTP id mc6so1420808lab.24 for ; Thu, 19 Jun 2014 06:16:12 -0700 (PDT) From: Sergey Fedorov Date: Thu, 19 Jun 2014 17:15:56 +0400 Message-Id: <1403183756-24664-1-git-send-email-serge.fdrv@gmail.com> Subject: [Qemu-devel] [PATCH] configure: put gprof config in host config file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Michael Tokarev , Stefan Hajnoczi , Paolo Bonzini , Sergey Fedorov , Richard Henderson The only use for GPROF_CFLAGS is in main makefile, but this variable put only to taget config file which is not included to the main makefile. Lets put gprof config variables to host config file. Signed-off-by: Sergey Fedorov --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index dfbe75e..e0433b9 100755 --- a/configure +++ b/configure @@ -4323,6 +4323,10 @@ fi if test "$profiler" = "yes" ; then echo "CONFIG_PROFILER=y" >> $config_host_mak fi +if test "$gprof" = "yes" ; then + echo "CONFIG_GPROF=y" >> $config_host_mak + echo "GPROF_CFLAGS=-p" >> $config_host_mak +fi if test "$slirp" = "yes" ; then echo "CONFIG_SLIRP=y" >> $config_host_mak echo "CONFIG_SMBD_COMMAND=\"$smbd\"" >> $config_host_mak @@ -5160,7 +5164,7 @@ alpha) esac if test "$gprof" = "yes" ; then - echo "TARGET_GPROF=yes" >> $config_target_mak + echo "TARGET_GPROF=y" >> $config_target_mak if test "$target_linux_user" = "yes" ; then cflags="-p $cflags" ldflags="-p $ldflags" -- 1.9.1