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/COLLECT_GCC_OPTIONS.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/COLLECT_GCC_OPTIONS.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/COLLECT_GCC_OPTIONS.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/COLLECT_GCC_OPTIONS.patch new file mode 100644 index 0000000000..8b53b839cf --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/COLLECT_GCC_OPTIONS.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | #This patck added --sysroot into COLLECT_GCC_OPTIONS which is used to | ||
2 | #invoke collect2. | ||
3 | |||
4 | Index: gcc-4.6.0/gcc/gcc.c | ||
5 | =================================================================== | ||
6 | --- gcc-4.6.0.orig/gcc/gcc.c | ||
7 | +++ gcc-4.6.0/gcc/gcc.c | ||
8 | @@ -3948,6 +3948,15 @@ set_collect_gcc_options (void) | ||
9 | sizeof ("COLLECT_GCC_OPTIONS=") - 1); | ||
10 | |||
11 | first_time = TRUE; | ||
12 | +#ifdef HAVE_LD_SYSROOT | ||
13 | + if (target_system_root_changed && target_system_root) | ||
14 | + { | ||
15 | + obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); | ||
16 | + obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); | ||
17 | + obstack_grow (&collect_obstack, "'", 1); | ||
18 | + first_time = FALSE; | ||
19 | + } | ||
20 | +#endif | ||
21 | for (i = 0; (int) i < n_switches; i++) | ||
22 | { | ||
23 | const char *const *args; | ||