diff options
Diffstat (limited to 'recipes-kernel/linux/linux-imx-2.6.35.3/perf-avoid-use-sysroot-headers.patch')
-rw-r--r-- | recipes-kernel/linux/linux-imx-2.6.35.3/perf-avoid-use-sysroot-headers.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/perf-avoid-use-sysroot-headers.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/perf-avoid-use-sysroot-headers.patch new file mode 100644 index 00000000..9ff2d14f --- /dev/null +++ b/recipes-kernel/linux/linux-imx-2.6.35.3/perf-avoid-use-sysroot-headers.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 9a06d08e43923f8ce35f1c649334f14d2e81941b Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Tue, 19 Mar 2013 14:04:08 -0300 | ||
4 | Subject: [PATCH] perf: Avoid use of sysroot's Linux headers | ||
5 | |||
6 | As Yocto now use a newer Linux headers package we end having a build | ||
7 | failure in perf as 'stddef.h' has changed and does not provide NULL | ||
8 | definition anymore. To workaround it we add the srcdir onto search path | ||
9 | for include files, before sysroot one. | ||
10 | |||
11 | Upstream-Status: Inappropriate [build system specific change] | ||
12 | |||
13 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
14 | --- | ||
15 | tools/perf/Makefile | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/tools/perf/Makefile b/tools/perf/Makefile | ||
19 | index 854652a..9605d46 100644 | ||
20 | --- a/tools/perf/Makefile | ||
21 | +++ b/tools/perf/Makefile | ||
22 | @@ -301,7 +301,7 @@ endif | ||
23 | # Those must not be GNU-specific; they are shared with perl/ which may | ||
24 | # be built by a different compiler. (Note that this is an artifact now | ||
25 | # but it still might be nice to keep that distinction.) | ||
26 | -BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include | ||
27 | +BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I../../include | ||
28 | BASIC_LDFLAGS = | ||
29 | |||
30 | # Guard against environment variables | ||
31 | -- | ||
32 | 1.8.1 | ||
33 | |||