summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.2.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.2/0003-gcc-poison-system-directories.patch6
-rw-r--r--meta/recipes-devtools/gcc/gcc-8.2/0004-gcc-poison-dir-extend.patch39
3 files changed, 4 insertions, 42 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-8.2.inc b/meta/recipes-devtools/gcc/gcc-8.2.inc
index 8503a66b07..889187e9c4 100644
--- a/meta/recipes-devtools/gcc/gcc-8.2.inc
+++ b/meta/recipes-devtools/gcc/gcc-8.2.inc
@@ -33,7 +33,6 @@ SRC_URI = "\
33 ${BASEURI} \ 33 ${BASEURI} \
34 file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ 34 file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
35 file://0003-gcc-poison-system-directories.patch \ 35 file://0003-gcc-poison-system-directories.patch \
36 file://0004-gcc-poison-dir-extend.patch \
37 file://0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ 36 file://0005-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \
38 file://0006-64-bit-multilib-hack.patch \ 37 file://0006-64-bit-multilib-hack.patch \
39 file://0007-optional-libstdc.patch \ 38 file://0007-optional-libstdc.patch \
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",
diff --git a/meta/recipes-devtools/gcc/gcc-8.2/0004-gcc-poison-dir-extend.patch b/meta/recipes-devtools/gcc/gcc-8.2/0004-gcc-poison-dir-extend.patch
deleted file mode 100644
index 1072d5b18f..0000000000
--- a/meta/recipes-devtools/gcc/gcc-8.2/0004-gcc-poison-dir-extend.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 97370eadcd10da5da529dfb734df56993ce24644 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:00:34 +0400
4Subject: [PATCH 04/39] gcc-poison-dir-extend
5
6Add /sw/include and /opt/include based on the original
7zecke-no-host-includes.patch patch. The original patch checked for
8/usr/include, /sw/include and /opt/include and then triggered a failure and
9aborted.
10
11Instead, we add the two missing items to the current scan. If the user
12wants this to be a failure, they can add "-Werror=poison-system-directories".
13
14Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16
17Upstream-Status: Pending
18---
19 gcc/incpath.c | 4 +++-
20 1 file changed, 3 insertions(+), 1 deletion(-)
21
22diff --git a/gcc/incpath.c b/gcc/incpath.c
23index 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--
382.17.0
39