]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-package-cross: also install the symlinks in libexec with target prefix
authorPhil Blundell <pb@pbcl.net>
Fri, 3 Jun 2011 11:30:11 +0000 (12:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Jun 2011 14:52:17 +0000 (15:52 +0100)
.. 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

index 04c81017df89f289f0006a22d41f107e3fc292a2..b51336bf2d919bdd927256b17d7122877496d728 100644 (file)
@@ -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