Skip to contentSkip to conversation

gcc-cross-canadian: Add symlink to real-ld alongside other symlinks

PATCH New Richard Purdie 1 participant 1 message Jul 31, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc-cross-canadian: Add symlink to real-ld alongside other symlinks

In some cases such as cross architecture configurations (using mips-X-linux on mips64-X-linux), gcc can get confused about finding a 'real' version of ld. Adding a symlink to 'real-ld' allowed these configurations to work properly.

meta/recipes-devtools/gcc/gcc-cross-canadian.inc +2 -0
index c6465d0..4cffcf6 100644
@@ -136,6 +136,8 @@ do_install () {
 
 		ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t$suffix $dest$t$suffix
 	done
+	t=real-ld
+	ln -sf ${BINRELPATH}/${TARGET_PREFIX}ld$suffix $dest$t$suffix
 
 	# libquadmath headers need to  be available in the gcc libexec dir
 	install -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/