]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Makefile
Merge branch 'linus' into tracing/ftrace
[linux-2.6-omap-h63xx.git] / Makefile
index 6923d669a4f6c01505d1158f868bd562e907774c..db164f69cffa0a57f641bd8a4518af27d9c1c7bb 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)