From: Adrian Hunter Date: Tue, 22 Oct 2013 07:34:05 +0000 (+0300) Subject: perf tools: Fix non-debug build X-Git-Tag: upstream/snapshot3+hdmi~4038^2~25^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74af377bc25dd9ebcb0be12836abb6b401b5dd08;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git perf tools: Fix non-debug build In the absence of s DEBUG variable definition on the command line perf tools was building without optimization. Fix by assigning DEBUG if it is not defined. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1382427258-17495-2-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index c516d6b..543aa95 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -66,6 +66,10 @@ ifneq ($(WERROR),0) CFLAGS += -Werror endif +ifndef DEBUG + DEBUG := 0 +endif + ifeq ($(DEBUG),0) CFLAGS += -O6 endif