binutils-external-cross: only link ld.bfd if necessary

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2018-03-20 03:25:19 +05:00
parent 23d7cd6994
commit ab715554ad

View File

@@ -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
}