diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-csl-arm/zecke-no-host-includes.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-csl-arm/zecke-no-host-includes.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-csl-arm/zecke-no-host-includes.patch b/meta/recipes-devtools/gcc/gcc-csl-arm/zecke-no-host-includes.patch deleted file mode 100644 index 1695582954..0000000000 --- a/meta/recipes-devtools/gcc/gcc-csl-arm/zecke-no-host-includes.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Index: gcc-4.0.2/gcc/c-incpath.c | ||
4 | =================================================================== | ||
5 | --- gcc-4.0.2.orig/gcc/c-incpath.c 2005-01-23 16:05:27.000000000 +0100 | ||
6 | +++ gcc-4.0.2/gcc/c-incpath.c 2006-05-15 21:23:02.000000000 +0200 | ||
7 | @@ -350,6 +350,26 @@ | ||
8 | p->construct = 0; | ||
9 | p->user_supplied_p = user_supplied_p; | ||
10 | |||
11 | +#ifdef CROSS_COMPILE | ||
12 | + /* A common error when cross compiling is including | ||
13 | + host headers. This code below will try to fail fast | ||
14 | + for cross compiling. Currently we consider /usr/include, | ||
15 | + /opt/include and /sw/include as harmful. */ | ||
16 | + { | ||
17 | + /* printf("Adding Path: %s\n", p->name ); */ | ||
18 | + if( strstr(p->name, "/usr/include" ) == p->name ) { | ||
19 | + fprintf(stderr, _("BUILD ISOLATION FAILURE: /usr/include in INCLUDEPATH: %s\n Please fix the flags passed to the compiler to use the correct prefix.\n"), p->name); | ||
20 | + abort(); | ||
21 | + } else if( strstr(p->name, "/sw/include") == p->name ) { | ||
22 | + fprintf(stderr, _("BUILD ISOLATION FAILURE: /sw/include in INCLUDEPATH: %s\n Please fix the flags passed to the compiler to use the correct prefix.\n"), p->name); | ||
23 | + abort(); | ||
24 | + } else if( strstr(p->name, "/opt/include") == p->name ) { | ||
25 | + fprintf(stderr, _("BUILD ISOLATION FAILURE: /opt/include in INCLUDEPATH: %s\n Please fix the flags passed to the compiler to use the correct prefix.\n"), p->name); | ||
26 | + abort(); | ||
27 | + } | ||
28 | + } | ||
29 | +#endif | ||
30 | + | ||
31 | add_cpp_dir_path (p, chain); | ||
32 | } | ||
33 | |||