diff options
-rw-r--r-- | lib/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index 6ca9e6ee1e33..d97ad1100b6f 100644 --- a/lib/Makefile +++ b/lib/Makefile | |||
@@ -10,8 +10,9 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \ | |||
10 | 10 | ||
11 | ifdef CONFIG_FTRACE | 11 | ifdef CONFIG_FTRACE |
12 | # Do not profile string.o, since it may be used in early boot or vdso | 12 | # Do not profile string.o, since it may be used in early boot or vdso |
13 | # Also do not profile any debug utilities | ||
13 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | 14 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
14 | KBUILD_CFLAGS = $(if $(subst string,,$(basename $(notdir $@))), \ | 15 | KBUILD_CFLAGS = $(if $(filter-out %debug debug% string%,$(basename $(notdir $@))), \ |
15 | $(ORIG_CFLAGS), \ | 16 | $(ORIG_CFLAGS), \ |
16 | $(subst -pg,,$(ORIG_CFLAGS))) | 17 | $(subst -pg,,$(ORIG_CFLAGS))) |
17 | endif | 18 | endif |