diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-devtools/gcc/gcc-4.8/0022-COLLECT_GCC_OPTIONS.patch | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.8/0022-COLLECT_GCC_OPTIONS.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8/0022-COLLECT_GCC_OPTIONS.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0022-COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-4.8/0022-COLLECT_GCC_OPTIONS.patch new file mode 100644 index 0000000000..40c8abffae --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-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 | |||