diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 7 |
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) | |||
52 | endif | 52 | endif |
53 | ifeq ($(ARCH),x86_64) | 53 | ifeq ($(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 | |||
279 | LIB_H += util/thread_map.h | 282 | LIB_H += util/thread_map.h |
280 | LIB_H += util/trace-event.h | 283 | LIB_H += util/trace-event.h |
281 | LIB_H += util/probe-finder.h | 284 | LIB_H += util/probe-finder.h |
285 | LIB_H += util/dwarf-aux.h | ||
282 | LIB_H += util/probe-event.h | 286 | LIB_H += util/probe-event.h |
283 | LIB_H += util/pstack.h | 287 | LIB_H += util/pstack.h |
284 | LIB_H += util/cpumap.h | 288 | LIB_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 | ||
438 | endif # PERF_HAVE_DWARF_REGS | 443 | endif # PERF_HAVE_DWARF_REGS |
439 | endif # NO_DWARF | 444 | endif # NO_DWARF |
440 | 445 | ||