perf tools: Add NO_BIONIC variable to confiure bionic setup
[firefly-linux-kernel-4.4.55.git] / tools / perf / config / Makefile
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