]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-runtime: Add linux-gnuspe symlink to fix c++ headers
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Oct 2014 17:03:25 +0000 (17:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Oct 2014 14:06:27 +0000 (15:06 +0100)
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>
meta/recipes-devtools/gcc/gcc-runtime.inc

index 7ce84f14d91ef354820fbf0de1f6c96fa0e88619..167869e1f2c710307d3d16ea0e13dc6fa64e5f64 100644 (file)
@@ -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}
 }