aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2011-05-03 08:09:44 -0700
committerTom Rini <trini@kernel.crashing.org>2011-09-22 16:55:36 -0700
commitcc8d3c437cb9ea5bea4b7686ae7b004549fd1f02 (patch)
treea657515a83d01a11b402152df154a1a1a8041709 /recipes/gcc
parentf0a2cb37fca677390e5b0c33628addb7615fa846 (diff)
downloadopenembedded-cc8d3c437cb9ea5bea4b7686ae7b004549fd1f02.tar.gz
gcc-package-target.inc: Switch to TARGET_PREFIX in symlinks
When TARGET_PREFIX and TARGET_SYS didn't match up, the symlinks we made were invalid. TARGET_PREFIX is what we use when configuring so it's what we should be using here. Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes/gcc')
-rw-r--r--recipes/gcc/gcc-package-target.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/gcc/gcc-package-target.inc b/recipes/gcc/gcc-package-target.inc
index 7d3f4aef6d..b2a5fb87bd 100644
--- a/recipes/gcc/gcc-package-target.inc
+++ b/recipes/gcc/gcc-package-target.inc
@@ -156,16 +156,16 @@ GROUP ( libgcc_s.so.1 libgcc.a )" > ${D}${libdir}/libgcc_s.so
rm -f ${TARGET_ARCH}-*${TARGET_ARCH}-*
# Symlinks so we can use these trivially on the target
- ln -sf ${TARGET_SYS}-g77 g77 || true
- ln -sf ${TARGET_SYS}-gfortran gfortran || true
- ln -sf ${TARGET_SYS}-g++ g++
- ln -sf ${TARGET_SYS}-gcc gcc
+ ln -sf ${TARGET_PREFIX}g77 g77 || true
+ ln -sf ${TARGET_PREFIX}gfortran gfortran || true
+ ln -sf ${TARGET_PREFIX}g++ g++
+ ln -sf ${TARGET_PREFIX}gcc gcc
ln -sf g77 f77 || true
ln -sf gfortran f95 || true
ln -sf g++ c++
ln -sf gcc cc
- ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp
- ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp
+ ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${base_libdir}/cpp
+ ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp
# Remove precompiled c++ headers as they are really big
rm -rf ${D}${includedir}/c++/${BINV}/${TARGET_SYS}/bits/*.gch