aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 940257b5774e..56d62d3fb167 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -52,7 +52,10 @@ ifeq ($(ARCH),i386)
52endif 52endif
53ifeq ($(ARCH),x86_64) 53ifeq ($(ARCH),x86_64)
54 ARCH := x86 54 ARCH := x86
55 IS_X86_64 := $(shell echo __x86_64__ | ${CC} -E -xc - | tail -n 1) 55 IS_X86_64 := 0
56 ifeq (, $(findstring m32,$(EXTRA_CFLAGS)))
57 IS_X86_64 := $(shell echo __x86_64__ | ${CC} -E -xc - | tail -n 1)
58 endif
56 ifeq (${IS_X86_64}, 1) 59 ifeq (${IS_X86_64}, 1)
57 RAW_ARCH := x86_64 60 RAW_ARCH := x86_64
58 ARCH_CFLAGS := -DARCH_X86_64 61 ARCH_CFLAGS := -DARCH_X86_64
@@ -279,6 +282,7 @@ LIB_H += util/thread.h
279LIB_H += util/thread_map.h 282LIB_H += util/thread_map.h
280LIB_H += util/trace-event.h 283LIB_H += util/trace-event.h
281LIB_H += util/probe-finder.h 284LIB_H += util/probe-finder.h
285LIB_H += util/dwarf-aux.h
282LIB_H += util/probe-event.h 286LIB_H += util/probe-event.h
283LIB_H += util/pstack.h 287LIB_H += util/pstack.h
284LIB_H += util/cpumap.h 288LIB_H += util/cpumap.h
@@ -435,6 +439,7 @@ else
435 BASIC_CFLAGS += -DDWARF_SUPPORT 439 BASIC_CFLAGS += -DDWARF_SUPPORT
436 EXTLIBS += -lelf -ldw 440 EXTLIBS += -lelf -ldw
437 LIB_OBJS += $(OUTPUT)util/probe-finder.o 441 LIB_OBJS += $(OUTPUT)util/probe-finder.o
442 LIB_OBJS += $(OUTPUT)util/dwarf-aux.o
438endif # PERF_HAVE_DWARF_REGS 443endif # PERF_HAVE_DWARF_REGS
439endif # NO_DWARF 444endif # NO_DWARF
440 445