perf tools: Add NO_BIONIC variable to confiure bionic setup
authorJiri Olsa <[email protected]>
Fri, 24 May 2013 12:35:24 +0000 (14:35 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 30 May 2013 13:45:02 +0000 (16:45 +0300)
Adding NO_BIONIC variable to confiure bionic setup

Signed-off-by: Jiri Olsa <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile
tools/perf/config/Makefile

index 4275ddc5afba1db40c8da1e8783087a227530e14..8f50afe09c02b643453bda7a186ff5ca72ed9e77 100644 (file)
@@ -51,6 +51,10 @@ include config/utilities.mak
 # Define NO_BACKTRACE if you do not want stack backtrace debug feature
 #
 # Define NO_LIBNUMA if you do not want numa perf benchmark
+#
+# Define NO_LIBAUDIT if you do not want libaudit support
+#
+# Define NO_LIBBIONIC if you do not want bionic support
 
 ifeq ($(srctree),)
 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
index 87622094e5118d52d12c8f2f076b621f753a3f3d..cc464f12354efcebc7fb78e875756e5af7b6dcc1 100644 (file)
@@ -131,11 +131,13 @@ CFLAGS += \
 CFLAGS += \
        -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 
+ifndef NO_BIONIC
 ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y)
        BIONIC := 1
        EXTLIBS := $(filter-out -lrt,$(EXTLIBS))
        EXTLIBS := $(filter-out -lpthread,$(EXTLIBS))
 endif
+endif # NO_BIONIC
 
 ifdef NO_LIBELF
        NO_DWARF := 1