diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-06-06 14:37:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-12 23:34:24 +0100 |
commit | 2c54aee6c115edd45caf24c197c2bd3d6a79b121 (patch) | |
tree | 75c8e86801a92870334a202d17e72354931decbb /meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch | |
parent | 52a71a394ed92361a269696d7a410ef94c1d5d0e (diff) | |
download | poky-2c54aee6c115edd45caf24c197c2bd3d6a79b121.tar.gz |
gcc-8: Add recipes for 8.1 release
(From OE-Core rev: c26156898ca83c96fea100ced9bc1f3d5b974bda)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch b/meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch new file mode 100644 index 0000000000..1072d5b18f --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-8.1/0004-gcc-poison-dir-extend.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 97370eadcd10da5da529dfb734df56993ce24644 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:00:34 +0400 | ||
4 | Subject: [PATCH 04/39] gcc-poison-dir-extend | ||
5 | |||
6 | Add /sw/include and /opt/include based on the original | ||
7 | zecke-no-host-includes.patch patch. The original patch checked for | ||
8 | /usr/include, /sw/include and /opt/include and then triggered a failure and | ||
9 | aborted. | ||
10 | |||
11 | Instead, we add the two missing items to the current scan. If the user | ||
12 | wants this to be a failure, they can add "-Werror=poison-system-directories". | ||
13 | |||
14 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | --- | ||
19 | gcc/incpath.c | 4 +++- | ||
20 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/gcc/incpath.c b/gcc/incpath.c | ||
23 | index e3b7a21966f..9a457e02dd3 100644 | ||
24 | --- a/gcc/incpath.c | ||
25 | +++ b/gcc/incpath.c | ||
26 | @@ -404,7 +404,9 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) | ||
27 | { | ||
28 | if ((!strncmp (p->name, "/usr/include", 12)) | ||
29 | || (!strncmp (p->name, "/usr/local/include", 18)) | ||
30 | - || (!strncmp (p->name, "/usr/X11R6/include", 18))) | ||
31 | + || (!strncmp (p->name, "/usr/X11R6/include", 18)) | ||
32 | + || (!strncmp (p->name, "/sw/include", 11)) | ||
33 | + || (!strncmp (p->name, "/opt/include", 12))) | ||
34 | warning (OPT_Wpoison_system_directories, | ||
35 | "include location \"%s\" is unsafe for " | ||
36 | "cross-compilation", | ||
37 | -- | ||
38 | 2.17.0 | ||
39 | |||