From 6b1eb436faf028476752bf4ecd68bf85044db59f Mon Sep 17 00:00:00 2001 From: Bernhard Rosenkraenzer Date: Fri, 21 Dec 2012 18:20:15 +0400 Subject: perf: get rid of the include The include seems to cause trouble in some arm64 configs. Also make libtraceevent to see Bionic -isystem flags passed to us. Signed-off-by: Bernhard Rosenkraenzer --- tools/perf/Makefile | 2 ++ tools/perf/compat-android.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index efd3e801f3a..653627dcf99 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -503,6 +503,8 @@ ifneq ($(call try-cc,$(SOURCE_LIBELF),$(FLAGS_LIBELF)),y) # That works too, but needs a bit of special treatment ANDROID_CFLAGS := -DANDROID -DHAVE_STRLCPY -include $(CURDIR)/compat-android.h BASIC_CFLAGS += $(ANDROID_CFLAGS) + # Make libtraceevent to see Bionic -isystem flags passed to us + ANDROID_CFLAGS += $(EXTRA_CFLAGS) ANDROID := 1 else msg := $(error No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static); diff --git a/tools/perf/compat-android.h b/tools/perf/compat-android.h index fce9573d257..b76adae2773 100644 --- a/tools/perf/compat-android.h +++ b/tools/perf/compat-android.h @@ -38,8 +38,8 @@ typedef uint64_t u64; #endif #endif #define __deprecated -#include +#include #undef BITS_PER_LONG /* Something seems to define this incorrectly */ #define BITS_PER_LONG _BITSIZE -- cgit v1.2.3