| Submitter | Phil Blundell |
|---|---|
| Date | June 3, 2011, 11:30 a.m. |
| Message ID | <1307100611.2529.256.camel@phil-desktop> |
| Download | mbox | patch |
| Permalink | /patch/5373/ |
| State | New, archived |
| Headers | show |
Comments
On 06/03/2011 04:30 AM, Phil Blundell wrote: > ... since this is where collect2 seems to look for them. This seems like > it is really a bug in collect2, but installing the symlinks is an easy > workaround. Without this you get "could not find ld" errors when using -flto. > > Signed-off-by: Phil Blundell<philb@gnu.org> > --- > meta/recipes-devtools/gcc/gcc-package-cross.inc | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc > index 04c8101..b51336b 100644 > --- a/meta/recipes-devtools/gcc/gcc-package-cross.inc > +++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc > @@ -20,6 +20,7 @@ do_install () { > install -d $dest > for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do > ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t > + ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t > done > > # Remove things we don't need but keep share/java Merged into OE-Core Thanks Sau!
Patch
diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc index 04c8101..b51336b 100644 --- a/meta/recipes-devtools/gcc/gcc-package-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc @@ -20,6 +20,7 @@ do_install () { install -d $dest for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t + ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t done # Remove things we don't need but keep share/java
... since this is where collect2 seems to look for them. This seems like it is really a bug in collect2, but installing the symlinks is an easy workaround. Without this you get "could not find ld" errors when using -flto. Signed-off-by: Phil Blundell <philb@gnu.org> --- meta/recipes-devtools/gcc/gcc-package-cross.inc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)