mirror of
https://git.yoctoproject.org/poky
synced 2026-04-15 21:32:13 +02:00
gcc-cross-canadian: do not create symlinks to non-existent binaries
If fortran is not built, soft links to gfortran and g77 are created even though the fortran compiler doesn't exist... [YOCTO #4023] (From OE-Core rev: c5c135bc5e71a6f9b14f249358bf5d217050ee55) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
175c5ceaf6
commit
2c201656eb
@@ -60,6 +60,10 @@ do_install () {
|
||||
dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
|
||||
install -d $dest
|
||||
for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
|
||||
if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user