[oe-commits] Richard Purdie : Revert "gcc-cross: aviod creating invalid symlinks"
git at git.openembedded.org
git at git.openembedded.org
Wed Mar 14 15:27:09 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 774b7a34de280aab696815a85cc81494a4ddb1ea
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=774b7a34de280aab696815a85cc81494a4ddb1ea
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Wed Mar 14 15:23:26 2012 +0000
Revert "gcc-cross: aviod creating invalid symlinks"
This reverts commit 7893e74311e53882d8f93ecb95a6bd9f5b14651e since it breaks
the builds.
---
.../gcc/gcc-cross-intermediate.inc | 3 +--
meta/recipes-devtools/gcc/gcc-package-cross.inc | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
index 87d11ab..ea105e6 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
@@ -51,8 +51,7 @@ 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
- [ ! -e ${BINRELPATH}/${TARGET_PREFIX}$t ] || \
- ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
+ ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
done
}
diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc
index 3d52d23..e32412c 100644
--- a/meta/recipes-devtools/gcc/gcc-package-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc
@@ -19,10 +19,8 @@ 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 [ -e ${BINRELPATH}/${TARGET_PREFIX}$t ]; then
- ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
- ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t
- fi
+ ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
+ ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t
done
# Remove things we don't need but keep share/java
More information about the Openembedded-commits
mailing list