diff options
author | Samuli Piippo <samuli.piippo@gmail.com> | 2021-05-21 17:33:42 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-25 10:05:18 +0100 |
commit | e7cc8ac2d3e308511d2a10ef5ecd93cab0da6532 (patch) | |
tree | 976d4c0826288c3c65ef7a41b7e503211d0f5f49 /meta | |
parent | 0411a1e027955d11763698ec8fd52e5fda634d40 (diff) | |
download | poky-e7cc8ac2d3e308511d2a10ef5ecd93cab0da6532.tar.gz |
gcc-cross-canadian: add symlinks for ld.bfd and ld.gold
When -fuse-ld gcc option is used, missing ld.bfd or ld.gold symlinks
can lead to linker error:
collect2: fatal error: cannot find 'ld'
(From OE-Core rev: 9ec1cd0a1e4cc2740be37585231279adf91c47d7)
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index 878feaf810..1872faee1b 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
@@ -124,7 +124,7 @@ do_install () { | |||
124 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ | 124 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ |
125 | install -d $dest | 125 | install -d $dest |
126 | suffix=${EXEEXT} | 126 | suffix=${EXEEXT} |
127 | for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do | 127 | for t in ar as ld ld.bfd ld.gold nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do |
128 | if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t$suffix ]; then | 128 | if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t$suffix ]; then |
129 | continue | 129 | continue |
130 | fi | 130 | fi |