diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-04 12:59:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-05 18:00:25 +0100 |
commit | 341c0d7d82c8ce96d43ce51081d641afd37d4baf (patch) | |
tree | 518d534b26c60ad7c96f524b8c3592b8244f8e16 /meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch | |
parent | c539765288bf3bc2c8578e037ce8fc9c2323b745 (diff) | |
download | poky-341c0d7d82c8ce96d43ce51081d641afd37d4baf.tar.gz |
gcc: Merge two related patches together
These patches may as well be merged together as they affect the same code
and things are clearer this way.
(From OE-Core rev: 7533c000183a2b447cbabd6ce1b8b75de55b63e7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch b/meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch index 1839d4c7b8..05138976c3 100644 --- a/meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch +++ b/meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch | |||
@@ -162,7 +162,7 @@ index b11c6a57939..e3b7a21966f 100644 | |||
162 | 162 | ||
163 | /* Microsoft Windows does not natively support inodes. | 163 | /* Microsoft Windows does not natively support inodes. |
164 | VMS has non-numeric inodes. */ | 164 | VMS has non-numeric inodes. */ |
165 | @@ -393,6 +394,24 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) | 165 | @@ -393,6 +394,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose) |
166 | } | 166 | } |
167 | fprintf (stderr, _("End of search list.\n")); | 167 | fprintf (stderr, _("End of search list.\n")); |
168 | } | 168 | } |
@@ -176,7 +176,9 @@ index b11c6a57939..e3b7a21966f 100644 | |||
176 | + { | 176 | + { |
177 | + if ((!strncmp (p->name, "/usr/include", 12)) | 177 | + if ((!strncmp (p->name, "/usr/include", 12)) |
178 | + || (!strncmp (p->name, "/usr/local/include", 18)) | 178 | + || (!strncmp (p->name, "/usr/local/include", 18)) |
179 | + || (!strncmp (p->name, "/usr/X11R6/include", 18))) | 179 | + || (!strncmp (p->name, "/usr/X11R6/include", 18)) |
180 | + || (!strncmp (p->name, "/sw/include", 11)) | ||
181 | + || (!strncmp (p->name, "/opt/include", 12))) | ||
180 | + warning (OPT_Wpoison_system_directories, | 182 | + warning (OPT_Wpoison_system_directories, |
181 | + "include location \"%s\" is unsafe for " | 183 | + "include location \"%s\" is unsafe for " |
182 | + "cross-compilation", | 184 | + "cross-compilation", |