diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 6dabcf1a4df6..52b1f438e71a 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -385,6 +385,7 @@ BUILTIN_OBJS += builtin-stat.o | |||
385 | BUILTIN_OBJS += builtin-timechart.o | 385 | BUILTIN_OBJS += builtin-timechart.o |
386 | BUILTIN_OBJS += builtin-top.o | 386 | BUILTIN_OBJS += builtin-top.o |
387 | BUILTIN_OBJS += builtin-trace.o | 387 | BUILTIN_OBJS += builtin-trace.o |
388 | BUILTIN_OBJS += builtin-probe.o | ||
388 | 389 | ||
389 | PERFLIBS = $(LIB_FILE) | 390 | PERFLIBS = $(LIB_FILE) |
390 | 391 | ||
@@ -420,13 +421,12 @@ ifneq ($(shell sh -c "(echo '\#include <libelf.h>'; echo 'int main(void) { Elf * | |||
420 | endif | 421 | endif |
421 | 422 | ||
422 | ifneq ($(shell sh -c "(echo '\#include <libdwarf/dwarf.h>'; echo '\#include <libdwarf/libdwarf.h>'; echo 'int main(void) { Dwarf_Debug dbg; Dwarf_Error err; dwarf_init(0, DW_DLC_READ, 0, 0, &dbg, &err); return (long)dbg; }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ldwarf -lelf -o /dev/null $(ALL_LDFLAGS) > /dev/null 2>&1 && echo y"), y) | 423 | ifneq ($(shell sh -c "(echo '\#include <libdwarf/dwarf.h>'; echo '\#include <libdwarf/libdwarf.h>'; echo 'int main(void) { Dwarf_Debug dbg; Dwarf_Error err; dwarf_init(0, DW_DLC_READ, 0, 0, &dbg, &err); return (long)dbg; }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ldwarf -lelf -o /dev/null $(ALL_LDFLAGS) > /dev/null 2>&1 && echo y"), y) |
423 | msg := $(warning No libdwarf.h found, disables probe subcommand. Please install libdwarf-dev/libdwarf-devel); | 424 | msg := $(warning No libdwarf.h found, disables dwarf support. Please install libdwarf-dev/libdwarf-devel); |
425 | BASIC_CFLAGS += -DNO_LIBDWARF | ||
424 | else | 426 | else |
425 | EXTLIBS += -lelf -ldwarf | 427 | EXTLIBS += -lelf -ldwarf |
426 | LIB_H += util/probe-finder.h | 428 | LIB_H += util/probe-finder.h |
427 | LIB_OBJS += util/probe-finder.o | 429 | LIB_OBJS += util/probe-finder.o |
428 | BUILTIN_OBJS += builtin-probe.o | ||
429 | BASIC_CFLAGS += -DSUPPORT_DWARF | ||
430 | endif | 430 | endif |
431 | 431 | ||
432 | ifdef NO_DEMANGLE | 432 | ifdef NO_DEMANGLE |