diff options
Diffstat (limited to 'meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0022-COLLECT_GCC_OPTIONS.patch')
-rw-r--r-- | meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0022-COLLECT_GCC_OPTIONS.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0022-COLLECT_GCC_OPTIONS.patch b/meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0022-COLLECT_GCC_OPTIONS.patch new file mode 100644 index 0000000..40c8abf --- /dev/null +++ b/meta-linaro-toolchain/recipes-devtools/gcc/gcc-linaro-4.8/0022-COLLECT_GCC_OPTIONS.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 7f5c9dcc71c8b83a0b5596266cc4bdf0936e8e00 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:16:28 +0400 | ||
4 | Subject: [PATCH 22/35] COLLECT_GCC_OPTIONS | ||
5 | |||
6 | This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to | ||
7 | invoke collect2. | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | --- | ||
13 | gcc/gcc.c | 9 +++++++++ | ||
14 | 1 file changed, 9 insertions(+) | ||
15 | |||
16 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
17 | index 477752f..51062aa 100644 | ||
18 | --- a/gcc/gcc.c | ||
19 | +++ b/gcc/gcc.c | ||
20 | @@ -4098,6 +4098,15 @@ set_collect_gcc_options (void) | ||
21 | sizeof ("COLLECT_GCC_OPTIONS=") - 1); | ||
22 | |||
23 | first_time = TRUE; | ||
24 | +#ifdef HAVE_LD_SYSROOT | ||
25 | + if (target_system_root_changed && target_system_root) | ||
26 | + { | ||
27 | + obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); | ||
28 | + obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); | ||
29 | + obstack_grow (&collect_obstack, "'", 1); | ||
30 | + first_time = FALSE; | ||
31 | + } | ||
32 | +#endif | ||
33 | for (i = 0; (int) i < n_switches; i++) | ||
34 | { | ||
35 | const char *const *args; | ||
36 | -- | ||
37 | 1.7.10.4 | ||
38 | |||