]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Makefile
Merge branch 'tracing/ftrace' into auto-ftrace-next
[linux-2.6-omap-h63xx.git] / Makefile
index 6315424a00b9fb2634f38f17833d7f302968a664..8e519953d2db955d7f78ae01fa5b6197c17fd90c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -528,6 +528,10 @@ KBUILD_CFLAGS      += -g
 KBUILD_AFLAGS  += -gdwarf-2
 endif
 
+ifdef CONFIG_FTRACE
+KBUILD_CFLAGS  += -pg
+endif
+
 # We trigger additional mismatches with less inlining
 ifdef CONFIG_DEBUG_SECTION_MISMATCH
 KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)