[linux-yocto] [PATCH 2/2] libtraceevent: Remove hard coded include to /usr/local/include in Makefile

tom.zanussi at linux.intel.com tom.zanussi at linux.intel.com
Thu Mar 21 14:43:31 PDT 2013

From: Jack Mitchell <jack.mitchell at dbbroadcast.co.uk>

having /usr/local/include hardcoded into the makefile is not necessary
as this is automatically included by GCC. It also infects cross-compile
builds with the host systems includes.

Signed-off-by: Jack Mitchell
Acked-by: Namhyung Kim
Cc: Ingo Molnar
Cc: Paul Mackerras
Cc: Peter Zijlstra
Link: http://lkml.kernel.org/r/1362741712-21308-1-git-send-email-ml@communistcode.co.uk
Signed-off-by: Arnaldo Carvalho de Melo

This implements the fix I described in Yocto [BUG #3993][perf using
host includes], now upstream.

Integrated-by: Tom Zanussi <tom.zanussi at linux.intel.com>
 tools/lib/traceevent/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
index a20e320..0b0a907 100644
--- a/tools/lib/traceevent/Makefile
+++ b/tools/lib/traceevent/Makefile
@@ -122,7 +122,7 @@ export Q VERBOSE
-INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES)
 # Set compile option CFLAGS if not set elsewhere
 CFLAGS ?= -g -Wall

More information about the linux-yocto mailing list