perf tools: Limit unwind support to x86 archs
Commit-ID: 02320931ce000836aa231ac1311769e303122099 Gitweb: http://git.kernel.org/tip/02320931ce000836aa231ac1311769e303122099 Author: Jiri Olsa <[email protected]> AuthorDate: Thu, 14 Feb 2013 15:59:33 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 14 Feb 2013 15:59:33 -0300
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 <[email protected]>
Signed-off-by Dirk Behme <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/Makefile | 5 +++++ 1 file changed, 5 insertions(+)
tools/perf/Makefile +5 -0
@@ -581,6 +581,11 @@ else endif # SOURCE_LIBELF endif # NO_LIBELF +# There's only x86 (both 32 and 64) support for CFI unwind so far +ifneq ($(ARCH),x86) + NO_LIBUNWIND := 1 +endif + ifndef NO_LIBUNWIND # for linking with debug library, run like: # make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/