diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-10-10 02:53:17 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-14 09:29:11 -0400 |
commit | 5f36978ca5b12b1e35535dedb8c999694fc0dfcf (patch) | |
tree | 82400905d2ffd74fdc8e5047a53f323ca044f997 | |
parent | 0dc097421974e076b47d19806966adf5ebc7fd6b (diff) |
tools/perf/build: Simplify the libelf logic
Ulrich Drepper and Namhyung Kim reported that the libelf logic in
config/Makefile is duplicated in part.
Remove the duplication, and also remove the now unused FLAGS_LIBELF
variable.
Reported-by: Ulrich Drepper <drepper@gmail.com>
Reported-by: Namhyung Kim <namhyung@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/config/Makefile | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 9524c0c4e88f..d2079220ff87 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -280,7 +280,6 @@ endif # NO_LIBELF | |||
280 | 280 | ||
281 | ifndef NO_LIBELF | 281 | ifndef NO_LIBELF |
282 | CFLAGS += -DHAVE_LIBELF_SUPPORT | 282 | CFLAGS += -DHAVE_LIBELF_SUPPORT |
283 | FLAGS_LIBELF=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) | ||
284 | 283 | ||
285 | ifeq ($(feature-libelf-mmap), 1) | 284 | ifeq ($(feature-libelf-mmap), 1) |
286 | CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT | 285 | CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT |
@@ -305,13 +304,6 @@ ifndef NO_LIBELF | |||
305 | endif # NO_DWARF | 304 | endif # NO_DWARF |
306 | endif # NO_LIBELF | 305 | endif # NO_LIBELF |
307 | 306 | ||
308 | ifndef NO_LIBELF | ||
309 | CFLAGS += -DHAVE_LIBELF_SUPPORT | ||
310 | ifeq ($(feature-libelf-mmap), 1) | ||
311 | CFLAGS += -DHAVE_LIBELF_MMAP_SUPPORT | ||
312 | endif | ||
313 | endif # NO_LIBELF | ||
314 | |||
315 | # There's only x86 (both 32 and 64) support for CFI unwind so far | 307 | # There's only x86 (both 32 and 64) support for CFI unwind so far |
316 | ifneq ($(ARCH),x86) | 308 | ifneq ($(ARCH),x86) |
317 | NO_LIBUNWIND := 1 | 309 | NO_LIBUNWIND := 1 |