diff --git a/features/perf/perf-temporary-gcc-4.7-build-fixes.patch b/features/perf/perf-temporary-gcc-4.7-build-fixes.patch
new file mode 100644
index 0000000000000000000000000000000000000000..6abfd34ded97d84e0ebc2a092b0d5ea50ad4df4f
--- /dev/null
+++ b/features/perf/perf-temporary-gcc-4.7-build-fixes.patch
@@ -0,0 +1,43 @@
+From dd109757a9eb5f62938cd336143a5495dc33bd8a Mon Sep 17 00:00:00 2001
+From: Bruce Ashfield <bruce.ashfield@windriver.com>
+Date: Sun, 9 Sep 2012 13:47:36 -0400
+Subject: [PATCH] perf: temporary gcc 4.7 build fixes
+
+Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
+---
+ tools/lib/traceevent/Makefile |    2 +-
+ tools/perf/Makefile           |    2 ++
+ 2 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
+index 14131cb..b13c7a6 100644
+--- a/tools/lib/traceevent/Makefile
++++ b/tools/lib/traceevent/Makefile
+@@ -122,7 +122,7 @@ export Q VERBOSE
+ 
+ EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION)
+ 
+-INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES)
++INCLUDES = -I. -I=/usr/local/include $(CONFIG_INCLUDES)
+ 
+ # Set compile option CFLAGS if not set elsewhere
+ CFLAGS ?= -g -Wall
+diff --git a/tools/perf/Makefile b/tools/perf/Makefile
+index c62ef32..93fd9b0 100644
+--- a/tools/perf/Makefile
++++ b/tools/perf/Makefile
+@@ -72,9 +72,11 @@ ifeq ($(ARCH),x86_64)
+ endif
+ 
+ # Treat warnings as errors unless directed not to
++#if 0
+ ifneq ($(WERROR),0)
+ 	CFLAGS_WERROR := -Werror
+ endif
++#endif
+ 
+ ifeq ("$(origin DEBUG)", "command line")
+   PERF_DEBUG = $(DEBUG)
+-- 
+1.7.5.4
+
diff --git a/features/perf/perf.scc b/features/perf/perf.scc
index 2de51057016b20d8ec16748169d5550588e71b48..2cacf9ece2457255a3f7b2b3320b258be472aa22 100644
--- a/features/perf/perf.scc
+++ b/features/perf/perf.scc
@@ -5,3 +5,4 @@ patch perf-add-libperl-not-found-warning.patch
 patch perf-change-root-to-prefix-for-python-install.patch
 patch perf-add-sgidefs.h-to-for-mips-builds.patch
 patch perf-add-SLANG_INC-for-slang.h.patch
+patch perf-temporary-gcc-4.7-build-fixes.patch