diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-package-cross.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-cross.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc index e32412c127..3d52d23f92 100644 --- a/meta/recipes-devtools/gcc/gcc-package-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc | |||
@@ -19,8 +19,10 @@ do_install () { | |||
19 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ | 19 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ |
20 | install -d $dest | 20 | install -d $dest |
21 | for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do | 21 | for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do |
22 | ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t | 22 | if [ -e ${BINRELPATH}/${TARGET_PREFIX}$t ]; then |
23 | ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t | 23 | ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t |
24 | ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t | ||
25 | fi | ||
24 | done | 26 | done |
25 | 27 | ||
26 | # Remove things we don't need but keep share/java | 28 | # Remove things we don't need but keep share/java |