All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] gcc/collect: Fixing Bug#815
@ 2011-03-10  6:21 Lianhao Lu
  2011-03-10  6:21 ` [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc Lianhao Lu
  0 siblings, 1 reply; 5+ messages in thread
From: Lianhao Lu @ 2011-03-10  6:21 UTC (permalink / raw)
  To: poky

From: Lianhao Lu <lianhao.lu@intel.com>

Added --sysroot support in the collect2 in gcc by adding --sysroot 
into COLLECT_GCC_OPTIONS. This allow the collect2 to pass --sysroot 
to ld or gcc it invokes.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: llu/gcc_collect
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=llu/gcc_collect

Thanks,
    Lianhao Lu <lianhao.lu@intel.com>
---


Lianhao Lu (1):
  gcc/collect2: Added --sysroot support into collect2 in gcc.

 meta/recipes-devtools/gcc/gcc-4.5.1.inc            |    1 +
 .../gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch        |   22 ++++++++++++++++++++
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 11 files changed, 32 insertions(+), 9 deletions(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc.
  2011-03-10  6:21 [PATCH 0/1] gcc/collect: Fixing Bug#815 Lianhao Lu
@ 2011-03-10  6:21 ` Lianhao Lu
  2011-03-11  3:19   ` Kamble, Nitin A
  2011-03-11  8:01   ` Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Lianhao Lu @ 2011-03-10  6:21 UTC (permalink / raw)
  To: poky

From: Lianhao Lu <lianhao.lu@intel.com>

[YOCTO #815] Added --sysroot into COLLECT_GCC_OPTIONS to allow the
collect2 support user specifed sysroot.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
---
 meta/recipes-devtools/gcc/gcc-4.5.1.inc            |    1 +
 .../gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch        |   22 ++++++++++++++++++++
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 11 files changed, 32 insertions(+), 9 deletions(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch

diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1.inc b/meta/recipes-devtools/gcc/gcc-4.5.1.inc
index 6c600c1..3c4902e 100644
--- a/meta/recipes-devtools/gcc/gcc-4.5.1.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.5.1.inc
@@ -56,6 +56,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
 	   file://disable_relax_pic_calls_flag.patch \
 	   file://gcc-poison-parameters.patch \
 	   file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \
+	   file://COLLECT_GCC_OPTIONS.patch \
 	  "
 	
 SRC_URI_append_sh3  = " file://sh3-installfix-fixheaders.patch;patch=1 "
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch
new file mode 100644
index 0000000..3e3dec7
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch
@@ -0,0 +1,22 @@
+#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;
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
index 3eea4bc..92708d4 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r3"
+PR = "r4"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
index 38e0964..081b7d6 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r3"
+PR = "r4"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
index 9a30cb5..a8473b0 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r4"
+PR = "r5"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
index 78bb05a..af6daf4 100644
--- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
index fec53b9..9708248 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
 
-PR = "r3"
+PR = "r4"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
index 161d870..d235969 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
 
-PR = "r3"
+PR = "r4"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
index 7069088..bae2389 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc
 
-PR = "r3"
+PR = "r4"
diff --git a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
index 093f9bf..c1e680d 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
index 25e455c..a193b38 100644
--- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc.
  2011-03-10  6:21 ` [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc Lianhao Lu
@ 2011-03-11  3:19   ` Kamble, Nitin A
  2011-03-11  8:01   ` Khem Raj
  1 sibling, 0 replies; 5+ messages in thread
From: Kamble, Nitin A @ 2011-03-11  3:19 UTC (permalink / raw)
  To: Lu, Lianhao, poky@yoctoproject.org

Looks fine to me.

Thanks,
Nitin


> -----Original Message-----
> From: poky-bounces@yoctoproject.org [mailto:poky-
> bounces@yoctoproject.org] On Behalf Of Lianhao Lu
> Sent: Wednesday, March 09, 2011 10:22 PM
> To: poky@yoctoproject.org
> Subject: [poky] [PATCH 1/1] gcc/collect2: Added --sysroot support into
> collect2 in gcc.
> 
> From: Lianhao Lu <lianhao.lu@intel.com>
> 
> [YOCTO #815] Added --sysroot into COLLECT_GCC_OPTIONS to allow the
> collect2 support user specifed sysroot.
> 
> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
> ---
>  meta/recipes-devtools/gcc/gcc-4.5.1.inc            |    1 +
>  .../gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch        |   22
> ++++++++++++++++++++
>  .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
>  .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
>  .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
>  meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
>  .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
>  .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
>  meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
>  meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
>  meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
>  11 files changed, 32 insertions(+), 9 deletions(-)
>  create mode 100644 meta/recipes-devtools/gcc/gcc-
> 4.5.1/COLLECT_GCC_OPTIONS.patch
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1.inc b/meta/recipes-
> devtools/gcc/gcc-4.5.1.inc
> index 6c600c1..3c4902e 100644
> --- a/meta/recipes-devtools/gcc/gcc-4.5.1.inc
> +++ b/meta/recipes-devtools/gcc/gcc-4.5.1.inc
> @@ -56,6 +56,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-
> ${PV}.tar.bz2 \
>  	   file://disable_relax_pic_calls_flag.patch \
>  	   file://gcc-poison-parameters.patch \
>  	   file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \
> +	   file://COLLECT_GCC_OPTIONS.patch \
>  	  "
> 
>  SRC_URI_append_sh3  = " file://sh3-installfix-fixheaders.patch;patch=1
> "
> diff --git a/meta/recipes-devtools/gcc/gcc-
> 4.5.1/COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-
> 4.5.1/COLLECT_GCC_OPTIONS.patch
> new file mode 100644
> index 0000000..3e3dec7
> --- /dev/null
> +++ b/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch
> @@ -0,0 +1,22 @@
> +#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;
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
> index 3eea4bc..92708d4 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
> @@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
>  require gcc-configure-sdk.inc
>  require gcc-package-sdk.inc
> 
> -PR = "r3"
> +PR = "r4"
> 
>  DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-
> nativesdk"
>  RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> index 38e0964..081b7d6 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> @@ -1,5 +1,5 @@
>  require gcc-cross_${PV}.bb
>  require gcc-cross-initial.inc
> 
> -PR = "r3"
> +PR = "r4"
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> index 9a30cb5..a8473b0 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross_${PV}.bb
>  require gcc-cross-intermediate.inc
> -PR = "r4"
> +PR = "r5"
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> index 78bb05a..af6daf4 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> @@ -1,4 +1,4 @@
> -PR = "r3"
> +PR = "r4"
> 
>  require gcc-${PV}.inc
>  require gcc-cross4.inc
> diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> index fec53b9..9708248 100644
> --- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross-initial_${PV}.bb
>  require gcc-crosssdk-initial.inc
> 
> -PR = "r3"
> +PR = "r4"
> diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-
> intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-
> intermediate_4.5.1.bb
> index 161d870..d235969 100644
> --- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross-intermediate_${PV}.bb
>  require gcc-crosssdk-intermediate.inc
> 
> -PR = "r3"
> +PR = "r4"
> diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> index 7069088..bae2389 100644
> --- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross_${PV}.bb
>  require gcc-crosssdk.inc
> 
> -PR = "r3"
> +PR = "r4"
> diff --git a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
> index 093f9bf..c1e680d 100644
> --- a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
> @@ -1,4 +1,4 @@
> -PR = "r2"
> +PR = "r3"
> 
>  require gcc-${PV}.inc
>  require gcc-configure-runtime.inc
> diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-
> devtools/gcc/gcc_4.5.1.bb
> index 25e455c..a193b38 100644
> --- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
> @@ -1,4 +1,4 @@
> -PR = "r3"
> +PR = "r4"
>  require gcc-${PV}.inc
>  require gcc-configure-target.inc
>  require gcc-package-target.inc
> --
> 1.7.0.4
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc.
  2011-03-10  6:21 ` [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc Lianhao Lu
  2011-03-11  3:19   ` Kamble, Nitin A
@ 2011-03-11  8:01   ` Khem Raj
  2011-03-11  9:29     ` Lu, Lianhao
  1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2011-03-11  8:01 UTC (permalink / raw)
  To: Lianhao Lu; +Cc: poky

On (10/03/11 14:21), Lianhao Lu wrote:
> From: Lianhao Lu <lianhao.lu@intel.com>
> 
> [YOCTO #815] Added --sysroot into COLLECT_GCC_OPTIONS to allow the
> collect2 support user specifed sysroot.

interesting. What happens if you remove -frepo option while compiling
your test program ?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc.
  2011-03-11  8:01   ` Khem Raj
@ 2011-03-11  9:29     ` Lu, Lianhao
  0 siblings, 0 replies; 5+ messages in thread
From: Lu, Lianhao @ 2011-03-11  9:29 UTC (permalink / raw)
  To: Khem Raj; +Cc: poky@yoctoproject.org

Khem Raj wrote on 2011-03-11:
> On (10/03/11 14:21), Lianhao Lu wrote:
>> From: Lianhao Lu <lianhao.lu@intel.com>
>> 
>> [YOCTO #815] Added --sysroot into COLLECT_GCC_OPTIONS to allow the
>> collect2 support user specifed sysroot.
> 
> interesting. What happens if you remove -frepo option while compiling
> your test program ?

By removing -frepo option, the problem seems gone. It seems that -frepo triggers the collect2 to recompile the object files which need template instantiations. By removing the -frepo the object files don't get recompiled, so the missing --sysroot wouldn't be a problem.

-Lianhao


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-11  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10  6:21 [PATCH 0/1] gcc/collect: Fixing Bug#815 Lianhao Lu
2011-03-10  6:21 ` [PATCH 1/1] gcc/collect2: Added --sysroot support into collect2 in gcc Lianhao Lu
2011-03-11  3:19   ` Kamble, Nitin A
2011-03-11  8:01   ` Khem Raj
2011-03-11  9:29     ` Lu, Lianhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.