From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: [PATCH 1/5] Use BASIC_FLAGS for profile feedback Date: Fri, 4 Jul 2014 16:43:48 -0700 Message-ID: <1404517432-25185-2-git-send-email-andi@firstfloor.org> References: <1404517432-25185-1-git-send-email-andi@firstfloor.org> Cc: Andi Kleen To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sat Jul 05 01:44:59 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X3DA1-0006Ag-66 for gcvg-git-2@plane.gmane.org; Sat, 05 Jul 2014 01:44:57 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760306AbaGDXox (ORCPT ); Fri, 4 Jul 2014 19:44:53 -0400 Received: from one.firstfloor.org ([193.170.194.197]:53372 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760273AbaGDXou (ORCPT ); Fri, 4 Jul 2014 19:44:50 -0400 Received: from basil.firstfloor.org (184-100-237-164.ptld.qwest.net [184.100.237.164]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by one.firstfloor.org (Postfix) with ESMTPSA id 253508677A; Sat, 5 Jul 2014 01:44:48 +0200 (CEST) Received: by basil.firstfloor.org (Postfix, from userid 1000) id 23686A164F; Fri, 4 Jul 2014 16:43:59 -0700 (PDT) X-Mailer: git-send-email 2.0.1 In-Reply-To: <1404517432-25185-1-git-send-email-andi@firstfloor.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: From: Andi Kleen Use BASIC_CFLAGS instead of CFLAGS to set up the profile feedback option in the Makefile. This allows still overriding CFLAGS on the make command line without disabling profile feedback. Signed-off-by: Andi Kleen --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 07ea105..a9770ac 100644 --- a/Makefile +++ b/Makefile @@ -1552,13 +1552,13 @@ endif PROFILE_DIR := $(CURDIR) ifeq ("$(PROFILE)","GEN") - CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1 + BASIC_CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1 EXTLIBS += -lgcov export CCACHE_DISABLE = t V = 1 else ifneq ("$(PROFILE)","") - CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1 + BASIC_CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1 export CCACHE_DISABLE = t V = 1 endif -- 2.0.1