summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-03 17:03:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-06 15:06:27 +0100
commit112641117f1152bad8a806f1aa872a67575d5316 (patch)
treeddde4f12d8dcb428030bc2f08fd8cb2e2f552aed
parentaafa4bc896eb944aa4fc406807dd7e02f4b9b7ba (diff)
downloadopenembedded-core-112641117f1152bad8a806f1aa872a67575d5316.tar.gz
openembedded-core-112641117f1152bad8a806f1aa872a67575d5316.tar.bz2
openembedded-core-112641117f1152bad8a806f1aa872a67575d5316.zip
gcc-runtime: Add linux-gnuspe symlink to fix c++ headers
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@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 7ce84f14d9..167869e1f2 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}
}