|
@@ -507,7 +507,7 @@ PERFLIBS = $(LIB_FILE)
|
|
|
-include config.mak
|
|
|
|
|
|
ifndef NO_DWARF
|
|
|
-FLAGS_DWARF=$(ALL_CFLAGS) -I/usr/include/elfutils -ldw -lelf $(ALL_LDFLAGS) $(EXTLIBS)
|
|
|
+FLAGS_DWARF=$(ALL_CFLAGS) -ldw -lelf $(ALL_LDFLAGS) $(EXTLIBS)
|
|
|
ifneq ($(call try-cc,$(SOURCE_DWARF),$(FLAGS_DWARF)),y)
|
|
|
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);
|
|
|
NO_DWARF := 1
|
|
@@ -554,7 +554,7 @@ ifndef NO_DWARF
|
|
|
ifeq ($(origin PERF_HAVE_DWARF_REGS), undefined)
|
|
|
msg := $(warning DWARF register mappings have not been defined for architecture $(ARCH), DWARF support disabled);
|
|
|
else
|
|
|
- BASIC_CFLAGS += -I/usr/include/elfutils -DDWARF_SUPPORT
|
|
|
+ BASIC_CFLAGS += -DDWARF_SUPPORT
|
|
|
EXTLIBS += -lelf -ldw
|
|
|
LIB_OBJS += $(OUTPUT)util/probe-finder.o
|
|
|
endif # PERF_HAVE_DWARF_REGS
|