]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-cross-canadian: do not create symlinks to non-existent binaries
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 15 Mar 2013 16:01:52 +0000 (18:01 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Mar 2013 17:16:25 +0000 (17:16 +0000)
If fortran is not built, soft links to gfortran and g77 are created
even though the fortran compiler doesn't exist...

[YOCTO #4023]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-package-sdk.inc

index f32e95fb0e2ccda02e06a69cc0d58bd848b4801e..bb6dfde90601f40d53fa2bd4136cb2c7e14c48a5 100644 (file)
@@ -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