summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-package-sdk.inc
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-03-15 18:01:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-16 17:53:59 +0000
commit2c201656eb6c63758218ab90899162f20e0691c9 (patch)
tree7cd7bdf8f05a337cd8ccce2ed2e087375b68cfdb /meta/recipes-devtools/gcc/gcc-package-sdk.inc
parent175c5ceaf6cc9ba707b72a75a89d1f990d691158 (diff)
downloadpoky-2c201656eb6c63758218ab90899162f20e0691c9.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-package-sdk.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-sdk.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
index f32e95fb0e..bb6dfde906 100644
--- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
@@ -60,6 +60,10 @@ do_install () {
60 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ 60 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
61 install -d $dest 61 install -d $dest
62 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do 62 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
63 if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t ]; then
64 continue
65 fi
66
63 ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t 67 ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t
64 done 68 done
65 69