diff options
author | Tom Rini <tom_rini@mentor.com> | 2011-05-04 12:26:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-09 14:09:08 +0100 |
commit | 6e884c3bd72755a3ccac3bffae60d5ea83730882 (patch) | |
tree | 79e248bee7f36d2b5bf1971d2f334815ab43256a | |
parent | 6e50e0c6b0a7e1922305ba934aa3b8ac6f6051bb (diff) | |
download | poky-6e884c3bd72755a3ccac3bffae60d5ea83730882.tar.gz |
gcc-package-target: 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.
This is 05143e9b5d0a42e32ee0dd3c7fde482ff8d63f63 from OE.
(From OE-Core rev: c0d6ba1ead3e68509718bea09d0b4d5a49a5f73e)
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-target.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc index d61e96b57b..e7f1b80894 100644 --- a/meta/recipes-devtools/gcc/gcc-package-target.inc +++ b/meta/recipes-devtools/gcc/gcc-package-target.inc | |||
@@ -91,13 +91,13 @@ do_install () { | |||
91 | find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f | 91 | find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f |
92 | 92 | ||
93 | # Symlinks so we can use these trivially on the target | 93 | # Symlinks so we can use these trivially on the target |
94 | ln -sf ${TARGET_SYS}-g77 g77 || true | 94 | ln -sf ${TARGET_PREFIX}g77 g77 || true |
95 | ln -sf ${TARGET_SYS}-gfortran gfortran || true | 95 | ln -sf ${TARGET_PREFIX}gfortran gfortran || true |
96 | ln -sf ${TARGET_SYS}-g++ g++ | 96 | ln -sf ${TARGET_PREFIX}g++ g++ |
97 | ln -sf ${TARGET_SYS}-gcc gcc | 97 | ln -sf ${TARGET_PREFIX}gcc gcc |
98 | ln -sf g77 f77 || true | 98 | ln -sf g77 f77 || true |
99 | ln -sf gfortran f95 || true | 99 | ln -sf gfortran f95 || true |
100 | ln -sf g++ c++ | 100 | ln -sf g++ c++ |
101 | ln -sf gcc cc | 101 | ln -sf gcc cc |
102 | ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp | 102 | ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp |
103 | } | 103 | } |