diff options
| author | Namhyung Kim <[email protected]> | 2012-10-26 08:55:52 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-10-26 13:22:24 +0000 |
| commit | fcc328032e7382bf413517ee4dddf1eca7970fe4 (patch) | |
| tree | 5e4d4c7be3d76ecf692ad0e0ed5cc2a1f37356db /tools/perf/builtin-inject.c | |
| parent | perf tools: Always show CHK message when doing try-cc (diff) | |
| download | kernel-fcc328032e7382bf413517ee4dddf1eca7970fe4.tar.gz kernel-fcc328032e7382bf413517ee4dddf1eca7970fe4.zip | |
perf tools: Fix LIBELF_MMAP checking
Currently checking mmap support in libelf failed due to wrong flags.
CHK libelf
CHK libdw
CHK libunwind
CHK -DLIBELF_MMAP
/tmp/ccYJwdR0.o: In function `main':
:(.text+0x18): undefined reference to `elf_begin'
collect2: error: ld returned 1 exit status
This cannot happen since we checked the elf_begin() when checking
libelf and it succeeded.
Fix it by using a same flag with libelf checking.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-inject.c')
0 files changed, 0 insertions, 0 deletions
