diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.5.1/gcc-poison-dir-extend.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1/gcc-poison-dir-extend.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/gcc-poison-dir-extend.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/gcc-poison-dir-extend.patch deleted file mode 100644 index 94e5c68843..0000000000 --- a/meta/recipes-devtools/gcc/gcc-4.5.1/gcc-poison-dir-extend.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Add /sw/include and /opt/include based on the original | ||
4 | zecke-no-host-includes.patch patch. The original patch checked for | ||
5 | /usr/include, /sw/include and /opt/include and then triggered a failure and | ||
6 | aborted. | ||
7 | |||
8 | Instead, we add the two missing items to the current scan. If the user | ||
9 | wants this to be a failure, they can add "-Werror=poison-system-directories". | ||
10 | |||
11 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
12 | |||
13 | diff -ur gcc-4.5.0.orig/gcc/incpath.c gcc-4.5.0/gcc/incpath.c | ||
14 | --- gcc-4.5.0.orig/gcc/incpath.c 2010-09-29 14:58:31.358975524 -0500 | ||
15 | +++ gcc-4.5.0/gcc/incpath.c 2010-09-29 15:08:02.065975516 -0500 | ||
16 | @@ -363,7 +363,9 @@ | ||
17 | { | ||
18 | if ((!strncmp (p->name, "/usr/include", 12)) | ||
19 | || (!strncmp (p->name, "/usr/local/include", 18)) | ||
20 | - || (!strncmp (p->name, "/usr/X11R6/include", 18))) | ||
21 | + || (!strncmp (p->name, "/usr/X11R6/include", 18)) | ||
22 | + || (!strncmp (p->name, "/sw/include", 11)) | ||
23 | + || (!strncmp (p->name, "/opt/include", 12))) | ||
24 | warning (OPT_Wpoison_system_directories, | ||
25 | "include location \"%s\" is unsafe for " | ||
26 | "cross-compilation", | ||