Skip to contentSkip to conversation

gcc-package-cross: also install the symlinks in libexec with target prefix

PATCH Applied Phil Blundell 2 participants 2 messages Jun 3, 2011 – Jun 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc-package-cross: also install the symlinks in libexec with target prefix

... 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.

---
 meta/recipes-devtools/gcc/gcc-package-cross.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/recipes-devtools/gcc/gcc-package-cross.inc +1 -0
index 04c8101..b51336b 100644
@@ -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
Signature · 1 line
1.7.2.5
Applied
#1 lore raw
Quoted 14 lines · Phil Blundell

... 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.

---
  meta/recipes-devtools/gcc/gcc-package-cross.inc |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
meta/recipes-devtools/gcc/gcc-package-cross.inc +0 -0
index 04c8101..b51336b 100644

meta/recipes-devtools/gcc/gcc-package-cross.inc do_install () { · line 26

Quoted 7 lines
meta/recipes-devtools/gcc/gcc-package-cross.inc +1 -0
@@ -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!