diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-05-24 08:35:24 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-05-30 09:45:02 -0400 |
commit | 4e22db46495f951d3b652277047639ea60c89d3c (patch) | |
tree | 0c317ff8c5564e58f6142475fd841b7498d0e937 /tools | |
parent | 7c53746e6da21750760054ca9fd8797725e3842a (diff) |
perf tools: Add NO_BIONIC variable to confiure bionic setup
Adding NO_BIONIC variable to confiure bionic setup
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1369398928-9809-22-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/Makefile | 4 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 4275ddc5afba..8f50afe09c02 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -51,6 +51,10 @@ include config/utilities.mak | |||
51 | # Define NO_BACKTRACE if you do not want stack backtrace debug feature | 51 | # Define NO_BACKTRACE if you do not want stack backtrace debug feature |
52 | # | 52 | # |
53 | # Define NO_LIBNUMA if you do not want numa perf benchmark | 53 | # Define NO_LIBNUMA if you do not want numa perf benchmark |
54 | # | ||
55 | # Define NO_LIBAUDIT if you do not want libaudit support | ||
56 | # | ||
57 | # Define NO_LIBBIONIC if you do not want bionic support | ||
54 | 58 | ||
55 | ifeq ($(srctree),) | 59 | ifeq ($(srctree),) |
56 | srctree := $(patsubst %/,%,$(dir $(shell pwd))) | 60 | srctree := $(patsubst %/,%,$(dir $(shell pwd))) |
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 87622094e511..cc464f12354e 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -131,11 +131,13 @@ CFLAGS += \ | |||
131 | CFLAGS += \ | 131 | CFLAGS += \ |
132 | -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE | 132 | -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE |
133 | 133 | ||
134 | ifndef NO_BIONIC | ||
134 | ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) | 135 | ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) |
135 | BIONIC := 1 | 136 | BIONIC := 1 |
136 | EXTLIBS := $(filter-out -lrt,$(EXTLIBS)) | 137 | EXTLIBS := $(filter-out -lrt,$(EXTLIBS)) |
137 | EXTLIBS := $(filter-out -lpthread,$(EXTLIBS)) | 138 | EXTLIBS := $(filter-out -lpthread,$(EXTLIBS)) |
138 | endif | 139 | endif |
140 | endif # NO_BIONIC | ||
139 | 141 | ||
140 | ifdef NO_LIBELF | 142 | ifdef NO_LIBELF |
141 | NO_DWARF := 1 | 143 | NO_DWARF := 1 |