diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-08 15:26:50 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-12 15:20:30 -0300 |
| commit | 07eebccbca2c21f32b5142f1a55b3b6818c54116 (patch) | |
| tree | 320d0ddad6e4aa26c7e9f324c5109333dee35562 /tools/objtool/Build | |
| parent | 61a6445e463a3152590352d8634131955f531c6e (diff) | |
tools lib subcmd: Use str_error_r()
To make it portable to non-glibc systems, that follow the XSI variant
instead of the GNU specific one that gets in place when _GNU_SOURCE is
defined.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/objtool/Build')
| -rw-r--r-- | tools/objtool/Build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objtool/Build b/tools/objtool/Build index 0e89258a3541..2457916a3943 100644 --- a/tools/objtool/Build +++ b/tools/objtool/Build @@ -5,9 +5,14 @@ objtool-y += special.o objtool-y += objtool.o objtool-y += libstring.o +objtool-y += str_error_r.o CFLAGS += -I$(srctree)/tools/lib $(OUTPUT)libstring.o: ../lib/string.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_o_c) + +$(OUTPUT)str_error_r.o: ../lib/str_error_r.c FORCE + $(call rule_mkdir) + $(call if_changed_dep,cc_o_c) |