]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-runtime: Add multilib C++ header mapping
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Sep 2015 16:47:39 +0000 (17:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Sep 2015 16:57:45 +0000 (17:57 +0100)
The SDK was unable to find the C++ header pieces correctly since its
using a generic compiler, not one specifically targeting the multilib
vendor prefix. This adds in the right mapping to ensure multilib SDKs
work as expected. This fixes multilib SDK automated tests.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-runtime.inc

index 09757e6ccc8a655e5a112dbae9d7cc7c0ce8f631..690d78012db908e6dbc901ec65289232ebc11da5 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_VENDOR_MULTILIB_ORIGINAL}" != "" -a "${TARGET_VENDOR}" != "${TARGET_VENDOR_MULTILIB_ORIGINAL}" ]; then
+               ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR_MULTILIB_ORIGINAL}-${TARGET_OS}
+       fi
        if [ "${TARGET_OS}" = "linux-gnuspe" ]; then
                ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux
        fi