sh: Decouple mcount from ftrace.
[deliverable/linux.git] / arch / sh / Makefile
index 75d049b03f7e04231de0525ba6b57e3779fe2984..52c34bf56962cef60e39f78ba715e0eefbf225e0 100644 (file)
@@ -186,6 +186,10 @@ KBUILD_CFLAGS              += -pipe $(cflags-y)
 KBUILD_CPPFLAGS                += $(cflags-y)
 KBUILD_AFLAGS          += $(cflags-y)
 
+ifeq ($(CONFIG_MCOUNT),y)
+  KBUILD_CFLAGS += -pg
+endif
+
 libs-$(CONFIG_SUPERH32)                := arch/sh/lib/ $(libs-y)
 libs-$(CONFIG_SUPERH64)                := arch/sh/lib64/ $(libs-y)
 
This page took 0.025914 seconds and 5 git commands to generate.