diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch deleted file mode 100644 index e8264e2845..0000000000 --- a/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | #This patck added --sysroot into COLLECT_GCC_OPTIONS which is used to | ||
4 | #invoke collect2. | ||
5 | |||
6 | diff -ruN gcc-4.5.1.orig/gcc/gcc.c gcc-4.5.1/gcc/gcc.c | ||
7 | --- gcc-4.5.1.orig/gcc/gcc.c 2011-03-09 16:43:39.127752586 +0800 | ||
8 | +++ gcc-4.5.1/gcc/gcc.c 2011-03-09 16:47:15.894929459 +0800 | ||
9 | @@ -4667,6 +4667,15 @@ | ||
10 | sizeof ("COLLECT_GCC_OPTIONS=") - 1); | ||
11 | |||
12 | first_time = TRUE; | ||
13 | +#ifdef HAVE_LD_SYSROOT | ||
14 | + if (target_system_root_changed && target_system_root) | ||
15 | + { | ||
16 | + obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); | ||
17 | + obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); | ||
18 | + obstack_grow (&collect_obstack, "'", 1); | ||
19 | + first_time = FALSE; | ||
20 | + } | ||
21 | +#endif | ||
22 | for (i = 0; (int) i < n_switches; i++) | ||
23 | { | ||
24 | const char *const *args; | ||