[oe-commits] Richard Purdie : gcc-runtime: Add linux-gnuspe symlink

git at git.openembedded.org git at git.openembedded.org
Mon Oct 6 14:03:04 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: d73a2c5d3a30a6c72465b39f9a1b5217de99ee01
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d73a2c5d3a30a6c72465b39f9a1b5217de99ee01

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Oct  3 17:03:25 2014 +0000

gcc-runtime: Add linux-gnuspe symlink

Some architectures can mix different TARGET_OS values, in most cases
we just use one but in the ppc case, can use two different values. In this
case, to use one toolchain with both, we need to ensure the symlinks exist.

This isn't ideal but does fix the ppc toolchains for the release, after
which better ways of handling this can be investiaged. Without this, failures
in the C++ toolchain are seen.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc-runtime.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 7ce84f1..167869e 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -53,6 +53,9 @@ do_install () {
 	if [ -d ${D}${infodir} ]; then
 		rmdir --ignore-fail-on-non-empty -p ${D}${infodir}
 	fi
+	if [ "${TARGET_OS}" = "linux-gnuspe" ]; then
+		ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux
+	fi
 	chown -R root:root ${D}
 }
 



More information about the Openembedded-commits mailing list