mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
ff0f815593
Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Eric Bénard <eric@eukrea.com> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
24 lines
797 B
Diff
24 lines
797 B
Diff
#This patck added --sysroot into COLLECT_GCC_OPTIONS which is used to
|
|
#invoke collect2.
|
|
|
|
Index: gcc-4_5-branch/gcc/gcc.c
|
|
===================================================================
|
|
--- gcc-4_5-branch.orig/gcc/gcc.c
|
|
+++ gcc-4_5-branch/gcc/gcc.c
|
|
@@ -4667,6 +4667,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;
|