diff options
| author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-07-19 02:36:13 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-24 01:38:36 +0100 |
| commit | c7c5c34188599bae19991f842a836fe125fa3283 (patch) | |
| tree | 5e2e97d48c73cc9d0206a0d57bf2446b8dec8af1 /meta/packages/gcc/files/pr22133-mingw-path-fixup.patch | |
| parent | 722e27e44806558b2ef3e6b7072451981fa5823e (diff) | |
| download | poky-c7c5c34188599bae19991f842a836fe125fa3283.tar.gz | |
gcc family : upgrade to 4.5.0
Imported OE patches into the poky recipes.
- Use elfutils instead of libelf
Converted OE's svn source into tar ball & a patch.
Added a patch to revert the baseversion to 4.5.0
Merge OE & poky extra_oeconf_options
Fix the zlib (inside gcc) make issue by providing the --with-system-zlib switch in EXTRA_OECONF
Found out that some header file dirs were soft linked to non-existing
locations like c_std. Changed the configure options to point them to
existing locations like c_global.
gcc-cross-canadian_4.5.0: fix configure issue
Thanks to Saul Wold for providing poky gcc patches rebased to the 4.5.0
sources.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/packages/gcc/files/pr22133-mingw-path-fixup.patch')
| -rw-r--r-- | meta/packages/gcc/files/pr22133-mingw-path-fixup.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/packages/gcc/files/pr22133-mingw-path-fixup.patch b/meta/packages/gcc/files/pr22133-mingw-path-fixup.patch new file mode 100644 index 0000000000..429e9ffd0c --- /dev/null +++ b/meta/packages/gcc/files/pr22133-mingw-path-fixup.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | diff -rupN gcc-4.2.orig/gcc/c-incpath.c gcc-4.2/gcc/c-incpath.c | ||
| 2 | --- gcc-4.2.orig/gcc/c-incpath.c 2007-09-01 11:28:30.000000000 -0400 | ||
| 3 | +++ gcc-4.2/gcc/c-incpath.c 2008-08-17 16:56:01.000000000 -0400 | ||
| 4 | @@ -340,13 +340,18 @@ add_path (char *path, int chain, int cxx | ||
| 5 | cpp_dir *p; | ||
| 6 | |||
| 7 | #if defined (HAVE_DOS_BASED_FILE_SYSTEM) | ||
| 8 | - /* Convert all backslashes to slashes. The native CRT stat() | ||
| 9 | - function does not recognize a directory that ends in a backslash | ||
| 10 | - (unless it is a drive root dir, such "c:\"). Forward slashes, | ||
| 11 | - trailing or otherwise, cause no problems for stat(). */ | ||
| 12 | - char* c; | ||
| 13 | - for (c = path; *c; c++) | ||
| 14 | - if (*c == '\\') *c = '/'; | ||
| 15 | + /* Remove unnecessary trailing slashes. On some versions of MS | ||
| 16 | + Windows, trailing _forward_ slashes cause no problems for stat(). | ||
| 17 | + On newer versions, stat() does not recognise a directory that ends | ||
| 18 | + in a '\\' or '/', unless it is a drive root dir, such as "c:/", | ||
| 19 | + where it is obligatory. */ | ||
| 20 | + int pathlen = strlen (path); | ||
| 21 | + char* end = path + pathlen - 1; | ||
| 22 | + /* Preserve the lead '/' or lead "c:/". */ | ||
| 23 | + char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1); | ||
| 24 | + | ||
| 25 | + for (; end > start && IS_DIR_SEPARATOR (*end); end--) | ||
| 26 | + *end = 0; | ||
| 27 | #endif | ||
| 28 | |||
| 29 | p = XNEW (cpp_dir); | ||
