Fix tools/vm/ build wrt str_error_r linking error
Arnaldo Carvalho de Melo
maintainerPATCH 1/1 Fix tools/vm/ build wrt str_error_r linking error
Hi,
In response to a report on IRC, please check that the following
patch fixes the tools/ build, I'll push it to Ingo soon, please let me know if it fixes things for you.
- Arnaldo
[PATCH 1/1] 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 <[email protected]>
Reported-by Randy Dunlap <[email protected]>
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Fixes b31e3e3316a7 ("tools lib api fs: Use str_error_r()")
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/lib/api/Build | 5 +++++ tools/perf/util/Build | 5 ----- tools/perf/util/python-ext-sources | 1 - 3 files changed, 5 insertions(+), 6 deletions(-)
tools/lib/api/Build +5 -0
@@ -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)
tools/perf/util/Build +0 -5
@@ -70,7 +70,6 @@ libperf-y += stat.o libperf-y += stat-shadow.o libperf-y += record.o libperf-y += srcline.o -libperf-y += str_error_r.o libperf-y += data.o libperf-y += tsc.o libperf-y += cloexec.o
@@ -176,10 +175,6 @@ $(OUTPUT)util/libstring.o: ../lib/string.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_o_c) -$(OUTPUT)util/str_error_r.o: ../lib/str_error_r.c FORCE - $(call rule_mkdir) - $(call if_changed_dep,cc_o_c) - $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_o_c)
tools/perf/util/python-ext-sources +0 -1
@@ -13,7 +13,6 @@ util/cpumap.c ../lib/bitmap.c ../lib/find_bit.c ../lib/hweight.c -../lib/str_error_r.c ../lib/vsprintf.c util/thread_map.c util/util.c
Signature · 1 line
2.7.4