aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/Makefile4
-rw-r--r--tools/perf/config/Makefile2
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
55ifeq ($(srctree),) 59ifeq ($(srctree),)
56srctree := $(patsubst %/,%,$(dir $(shell pwd))) 60srctree := $(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 += \
131CFLAGS += \ 131CFLAGS += \
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
134ifndef NO_BIONIC
134ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) 135ifeq ($(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))
138endif 139endif
140endif # NO_BIONIC
139 141
140ifdef NO_LIBELF 142ifdef NO_LIBELF
141 NO_DWARF := 1 143 NO_DWARF := 1