diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-06-28 12:19:53 -0700 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-09 18:40:21 +0200 |
| commit | 6b278fbb02d818b54b5a9fa2716fc49e896b72a8 (patch) | |
| tree | 833783fb738ff7abf3d0e3029c9a468e73b06e28 /toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-poison-dir-extend.patch | |
| parent | 680af24d1ff95533db610176e6b01fcc9dcf6699 (diff) | |
| download | meta-openembedded-6b278fbb02d818b54b5a9fa2716fc49e896b72a8.tar.gz | |
gcc-4.6: Migrate recipes from OE-Core
Remove linaro patches. If one needs to use linaro
modified gcc they should use meta-linaro
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-poison-dir-extend.patch')
| -rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-poison-dir-extend.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-poison-dir-extend.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-poison-dir-extend.patch new file mode 100644 index 0000000000..35170e2622 --- /dev/null +++ b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/gcc-poison-dir-extend.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 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 | Index: gcc-4.6.0/gcc/incpath.c | ||
| 14 | =================================================================== | ||
| 15 | --- gcc-4.6.0.orig/gcc/incpath.c | ||
| 16 | +++ gcc-4.6.0/gcc/incpath.c | ||
| 17 | @@ -363,7 +363,9 @@ merge_include_chains (const char *sysroo | ||
| 18 | { | ||
| 19 | if ((!strncmp (p->name, "/usr/include", 12)) | ||
| 20 | || (!strncmp (p->name, "/usr/local/include", 18)) | ||
| 21 | - || (!strncmp (p->name, "/usr/X11R6/include", 18))) | ||
| 22 | + || (!strncmp (p->name, "/usr/X11R6/include", 18)) | ||
| 23 | + || (!strncmp (p->name, "/sw/include", 11)) | ||
| 24 | + || (!strncmp (p->name, "/opt/include", 12))) | ||
| 25 | warning (OPT_Wpoison_system_directories, | ||
| 26 | "include location \"%s\" is unsafe for " | ||
| 27 | "cross-compilation", | ||
