diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-03-15 18:01:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-16 17:16:25 +0000 |
commit | c5c135bc5e71a6f9b14f249358bf5d217050ee55 (patch) | |
tree | caa89494324702152497f9f68711fedd33a388c6 /meta | |
parent | 5cc3b4fe09cfa2b3e67568a9c2494c198a5292af (diff) | |
download | openembedded-core-c5c135bc5e71a6f9b14f249358bf5d217050ee55.tar.gz openembedded-core-c5c135bc5e71a6f9b14f249358bf5d217050ee55.tar.bz2 openembedded-core-c5c135bc5e71a6f9b14f249358bf5d217050ee55.zip |
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]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-sdk.inc | 4 |
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 () { 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 |