Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 308e1e70 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

tools/perf/build: Clean up the libunwind logic in config/Makefile

Nest the rules properly. No change in functionality.

Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/n/tip-jjlmizjmhockUs04wqnScnkl@git.kernel.org


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent b7bcef6f
Loading
Loading
Loading
Loading
+12 −12
Original line number Original line Diff line number Diff line
@@ -251,8 +251,8 @@ FLAGS_UNWIND=$(LIBUNWIND_CFLAGS) $(CFLAGS) $(LIBUNWIND_LDFLAGS) $(LDFLAGS) $(EXT
  ifneq ($(call try-cc,$(SOURCE_LIBUNWIND),$(FLAGS_UNWIND),libunwind),y)
  ifneq ($(call try-cc,$(SOURCE_LIBUNWIND),$(FLAGS_UNWIND),libunwind),y)
    msg := $(warning No libunwind found, disabling post unwind support. Please install libunwind-dev[el] >= 0.99);
    msg := $(warning No libunwind found, disabling post unwind support. Please install libunwind-dev[el] >= 0.99);
    NO_LIBUNWIND := 1
    NO_LIBUNWIND := 1
endif # Libunwind support
  endif
endif # NO_LIBUNWIND
endif


ifndef NO_LIBUNWIND
ifndef NO_LIBUNWIND
  CFLAGS += -DHAVE_LIBUNWIND_SUPPORT
  CFLAGS += -DHAVE_LIBUNWIND_SUPPORT