Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

objtool: Fix build by linking against tools/lib/ctype.o sources

Fix objtool build, because it adds _ctype dependency via isspace call patch.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: André Goddard Rosa <andre.goddard@gmail.com>
Cc: Clark Williams <williams@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 7bd330de43fd ("tools lib: Adopt skip_spaces() from the kernel sources")
Link: http://lkml.kernel.org/r/20190702121240.GB12694@krava
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
0c69b931 06c642c0

+5
+5
tools/objtool/Build
··· 9 9 objtool-y += objtool.o 10 10 11 11 objtool-y += libstring.o 12 + objtool-y += libctype.o 12 13 objtool-y += str_error_r.o 13 14 14 15 CFLAGS += -I$(srctree)/tools/lib 15 16 16 17 $(OUTPUT)libstring.o: ../lib/string.c FORCE 18 + $(call rule_mkdir) 19 + $(call if_changed_dep,cc_o_c) 20 + 21 + $(OUTPUT)libctype.o: ../lib/ctype.c FORCE 17 22 $(call rule_mkdir) 18 23 $(call if_changed_dep,cc_o_c) 19 24