mirror of
https://git.yoctoproject.org/poky
synced 2026-07-26 07:07:08 +00:00
42d2170f86
python: update upstream-status for patches binutils: update upstream-status for patches gcc 4.5.1 4.6.0: update upstream-status for patches autoconf: update upstream-status for patches automake: update upstream-status for patches bison: update upstream-status for patches distcc: update upstream-status of patches fstests: update upstream-status for patches gdb: update upstream-status of patches intltool: update upstream-status of patches libtool: update upstream status of patches linux-libc-headers: update upstream-status for patches make: update upstream-status for patches perl: update upstream-status for patches python-pycurl: update upstream-status for patches python-pygobject: update upstream status for patches python-pyrex: update upstream-status for patches quilt: update upstream-status of patches tcl: update upstream-status for patches gnu-config: update upstream-status for patches gmp: update upstream-status for patches (From OE-Core rev: a62fa9b213b09bf48c48499d2e3c66a9ee306deb) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
809 B
Diff
25 lines
809 B
Diff
Upstream-Status: Pending
|
|
|
|
#This patck added --sysroot into COLLECT_GCC_OPTIONS which is used to
|
|
#invoke collect2.
|
|
|
|
diff -ruN gcc-4.5.1.orig/gcc/gcc.c gcc-4.5.1/gcc/gcc.c
|
|
--- gcc-4.5.1.orig/gcc/gcc.c 2011-03-09 16:43:39.127752586 +0800
|
|
+++ gcc-4.5.1/gcc/gcc.c 2011-03-09 16:47:15.894929459 +0800
|
|
@@ -4667,6 +4667,15 @@
|
|
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;
|