From ab715554ad858edcd3bd735cd37d25ac38a8d75c Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 20 Mar 2018 03:25:19 +0500 Subject: [PATCH] binutils-external-cross: only link ld.bfd if necessary Signed-off-by: Christopher Larson --- recipes-external/binutils/binutils-external-cross.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-external/binutils/binutils-external-cross.bb b/recipes-external/binutils/binutils-external-cross.bb index d265584..a0faa3b 100644 --- a/recipes-external/binutils/binutils-external-cross.bb +++ b/recipes-external/binutils/binutils-external-cross.bb @@ -15,5 +15,7 @@ EXTERNAL_CROSS_BINARIES = "ar as ld nm objcopy objdump ranlib strip \ strings" do_install_append () { - ln -s ${TARGET_PREFIX}ld ${D}${bindir}/${TARGET_PREFIX}ld.bfd + if [ ! -e ${D}${bindir}/${TARGET_PREFIX}ld.bfd ]; then + ln -s ${TARGET_PREFIX}ld ${D}${bindir}/${TARGET_PREFIX}ld.bfd + fi }