aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-02-14 13:59:33 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-02-14 13:59:33 -0500
commit02320931ce000836aa231ac1311769e303122099 (patch)
tree01d79b804679e9c924c607675e4b2df8a9c361eb /tools/perf/Makefile
parent18c9e5c567e1bc475edc67dca3680ecd2562dc5c (diff)
perf tools: Limit unwind support to x86 archs
There's DWARF unwind support only for x86 archs, so limit the unwind.o object to them only. Without this building for other archs (e.g. cross compiling for ARM) is broken. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Link: http://lkml.kernel.org/n/tip-viqtvd6hppqgt68zz4wlqm20@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 1c8df6f9c4d9..b90528d42b03 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -581,6 +581,11 @@ else
581endif # SOURCE_LIBELF 581endif # SOURCE_LIBELF
582endif # NO_LIBELF 582endif # NO_LIBELF
583 583
584# There's only x86 (both 32 and 64) support for CFI unwind so far
585ifneq ($(ARCH),x86)
586 NO_LIBUNWIND := 1
587endif
588
584ifndef NO_LIBUNWIND 589ifndef NO_LIBUNWIND
585# for linking with debug library, run like: 590# for linking with debug library, run like:
586# make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/ 591# make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/