mirror of
https://git.yoctoproject.org/poky
synced 2026-03-31 11:02:21 +02:00
We call the recipes 4.6 Remove the backport patches (From OE-Core rev: 68b545f4ff719f2b6e57d68b002dc9845c7a14ae) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
26 lines
808 B
Diff
26 lines
808 B
Diff
Upstream-Status: Pending
|
|
|
|
#This patck added --sysroot into COLLECT_GCC_OPTIONS which is used to
|
|
#invoke collect2.
|
|
|
|
Index: gcc-4.6.0/gcc/gcc.c
|
|
===================================================================
|
|
--- gcc-4.6.0.orig/gcc/gcc.c
|
|
+++ gcc-4.6.0/gcc/gcc.c
|
|
@@ -3948,6 +3948,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;
|