diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-19 21:27:09 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-28 10:44:21 +0100 |
commit | 3669de7f96100a5d4fbfc9b4e2ebc16851ba98ea (patch) | |
tree | 66743557d4203b019988970a6fa3ac603c06c991 /meta/recipes-devtools/gcc/gcc-4.6.0/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch | |
parent | 07a6bec75c59fec06d0947ada708482900bf067a (diff) | |
download | poky-3669de7f96100a5d4fbfc9b4e2ebc16851ba98ea.tar.gz |
gcc: Add recipes for 4.6.0
This is initial set of patches for testing them out
The patches need documentation is pending
Some patches especially uclibc related are not
needed they must be dropped.
(From OE-Core rev: 26858099bc104efc3b3d15d9298018285c551b9a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch new file mode 100644 index 0000000000..ffb226743d --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | # by default c++ include directories are not relative to "--sysroot" | ||
2 | # which brings one trouble when using the toolchain in an environment | ||
3 | # where the build directory generating that toolchain doesn't exist, | ||
4 | # e.g. in sstate, machine specific sysroot and relocatable SDK | ||
5 | # toolchain. This patch now enables c++ include paths under sysroot. | ||
6 | # This way it's enough as long as "--sysroot" is correctly enabled | ||
7 | # in the new environment. | ||
8 | # | ||
9 | # Signed-off-by Kevin Tian <kevin.tian@intel.com>, 2010-12-30 | ||
10 | |||
11 | Index: gcc-4.6.0/gcc/cppdefault.c | ||
12 | =================================================================== | ||
13 | --- gcc-4.6.0.orig/gcc/cppdefault.c | ||
14 | +++ gcc-4.6.0/gcc/cppdefault.c | ||
15 | @@ -48,15 +48,15 @@ const struct default_include cpp_include | ||
16 | = { | ||
17 | #ifdef GPLUSPLUS_INCLUDE_DIR | ||
18 | /* Pick up GNU C++ generic include files. */ | ||
19 | - { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 0, 0 }, | ||
20 | + { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 1, 0 }, | ||
21 | #endif | ||
22 | #ifdef GPLUSPLUS_TOOL_INCLUDE_DIR | ||
23 | /* Pick up GNU C++ target-dependent include files. */ | ||
24 | - { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, 0, 1 }, | ||
25 | + { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, 1, 1 }, | ||
26 | #endif | ||
27 | #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR | ||
28 | /* Pick up GNU C++ backward and deprecated include files. */ | ||
29 | - { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, 0, 0 }, | ||
30 | + { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, 1, 0 }, | ||
31 | #endif | ||
32 | #ifdef GCC_INCLUDE_DIR | ||
33 | /* This is the dir for gcc's private headers. */ | ||