3d094751c8
(From OE-Core rev: f051216ea373f166016b15bbd2a2a6f136430372) (From OE-Core rev: d4573cb750bfde488682244d30266dfe675bac06) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
39 lines
1 KiB
Diff
39 lines
1 KiB
Diff
From 7f5c9dcc71c8b83a0b5596266cc4bdf0936e8e00 Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Fri, 29 Mar 2013 09:16:28 +0400
|
|
Subject: [PATCH 22/35] COLLECT_GCC_OPTIONS
|
|
|
|
This patch adds --sysroot into COLLECT_GCC_OPTIONS which is used to
|
|
invoke collect2.
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
Upstream-Status: Pending
|
|
---
|
|
gcc/gcc.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/gcc/gcc.c b/gcc/gcc.c
|
|
index 477752f..51062aa 100644
|
|
--- a/gcc/gcc.c
|
|
+++ b/gcc/gcc.c
|
|
@@ -4098,6 +4098,15 @@ set_collect_gcc_options (void)
|
|
sizeof ("COLLECT_GCC_OPTIONS=") - 1);
|
|
|
|
first_time = TRUE;
|
|
+#ifdef HAVE_LD_SYSROOT
|
|
+ if (target_system_root_changed && target_system_root)
|
|
+ {
|
|
+ obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1);
|
|
+ obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root));
|
|
+ obstack_grow (&collect_obstack, "'", 1);
|
|
+ first_time = FALSE;
|
|
+ }
|
|
+#endif
|
|
for (i = 0; (int) i < n_switches; i++)
|
|
{
|
|
const char *const *args;
|
|
--
|
|
1.7.10.4
|
|
|