diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index e5e71e7d95a0..834f09fa5c62 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -486,7 +486,13 @@ ifneq ($(call try-cc,$(SOURCE_LIBELF),$(FLAGS_LIBELF)),y) | |||
486 | NO_DWARF := 1 | 486 | NO_DWARF := 1 |
487 | NO_DEMANGLE := 1 | 487 | NO_DEMANGLE := 1 |
488 | endif | 488 | endif |
489 | endif | 489 | else |
490 | FLAGS_DWARF=$(ALL_CFLAGS) -ldw -lelf $(ALL_LDFLAGS) $(EXTLIBS) | ||
491 | ifneq ($(call try-cc,$(SOURCE_DWARF),$(FLAGS_DWARF)),y) | ||
492 | msg := $(warning No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev); | ||
493 | NO_DWARF := 1 | ||
494 | endif # Dwarf support | ||
495 | endif # SOURCE_LIBELF | ||
490 | endif # NO_LIBELF | 496 | endif # NO_LIBELF |
491 | 497 | ||
492 | ifndef NO_LIBUNWIND | 498 | ifndef NO_LIBUNWIND |
@@ -532,12 +538,6 @@ ifneq ($(call try-cc,$(SOURCE_ELF_MMAP),$(FLAGS_COMMON)),y) | |||
532 | BASIC_CFLAGS += -DLIBELF_NO_MMAP | 538 | BASIC_CFLAGS += -DLIBELF_NO_MMAP |
533 | endif | 539 | endif |
534 | 540 | ||
535 | FLAGS_DWARF=$(ALL_CFLAGS) -ldw -lelf $(ALL_LDFLAGS) $(EXTLIBS) | ||
536 | ifneq ($(call try-cc,$(SOURCE_DWARF),$(FLAGS_DWARF)),y) | ||
537 | msg := $(warning No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev); | ||
538 | NO_DWARF := 1 | ||
539 | endif # Dwarf support | ||
540 | |||
541 | ifndef NO_DWARF | 541 | ifndef NO_DWARF |
542 | ifeq ($(origin PERF_HAVE_DWARF_REGS), undefined) | 542 | ifeq ($(origin PERF_HAVE_DWARF_REGS), undefined) |
543 | msg := $(warning DWARF register mappings have not been defined for architecture $(ARCH), DWARF support disabled); | 543 | msg := $(warning DWARF register mappings have not been defined for architecture $(ARCH), DWARF support disabled); |