]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gcc-package-target: Switch to TARGET_PREFIX in symlinks
authorTom Rini <tom_rini@mentor.com>
Wed, 4 May 2011 19:26:12 +0000 (12:26 -0700)
committerSaul Wold <sgw@linux.intel.com>
Mon, 9 May 2011 06:56:10 +0000 (23:56 -0700)
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.

This is 05143e9b5d0a42e32ee0dd3c7fde482ff8d63f63 from OE.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
meta/recipes-devtools/gcc/gcc-package-target.inc

index d61e96b57bf560e36b20f5c59afda161b8faffe2..e7f1b808942bede46ccaa7a352cfec03701f9a06 100644 (file)
@@ -91,13 +91,13 @@ do_install () {
        find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
 
        # 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}${bindir}/cpp
+       ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp
 }