summaryrefslogtreecommitdiffstats
path: root/tools/lib/api/Build
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-07-27 22:09:17 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-27 22:16:43 +0200
commit8149a774d53afeaf5eb337a813f828f8b8ce68da (patch)
tree509034188b1438ddd9f572e378caf69d0866bd12 /tools/lib/api/Build
parentMerge tag 'perf-urgent-for-mingo-20160726' of git://git.kernel.org/pub/scm/li... (diff)
downloadlinux-8149a774d53afeaf5eb337a813f828f8b8ce68da.tar.xz
linux-8149a774d53afeaf5eb337a813f828f8b8ce68da.zip
tools lib api: Add str_error_c to libapi
Because it uses that function, which would lead every tool using it to need to link against tools/lib/str_error_r.o. This fixes building tools/vm/, that links with libapi. Reported-by: Arjan van de Ven <arjan@linux.intel.com> Reported-by: Randy Dunlap <rdunlap@infradead.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Fixes: b31e3e3316a7 ("tools lib api fs: Use str_error_r()") Link: http://lkml.kernel.org/n/tip-aedt3qzibhnhaov2j4caqi61@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/Build')
-rw-r--r--tools/lib/api/Build5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lib/api/Build b/tools/lib/api/Build
index 954c644f7ad9..6e2373db5598 100644
--- a/tools/lib/api/Build
+++ b/tools/lib/api/Build
@@ -2,3 +2,8 @@ libapi-y += fd/
libapi-y += fs/
libapi-y += cpu.o
libapi-y += debug.o
+libapi-y += str_error_r.o
+
+$(OUTPUT)str_error_r.o: ../str_error_r.c FORCE
+ $(call rule_mkdir)
+ $(call if_changed_dep,cc_o_c)