diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2016-10-08 10:53:52 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-09 12:31:40 +0100 |
commit | 8209a01242b3ea265c69049879e9ade951bf9602 (patch) | |
tree | d09329b8f552d43e1608320108ed25a3508f5740 /meta | |
parent | 1b55ee1a4815f03feecd226995066a8c11702e0f (diff) | |
download | poky-8209a01242b3ea265c69049879e9ade951bf9602.tar.gz |
gcc-runtime.inc: Add CPP support for x86-64-x32 tune
Using the following setup (as specified in yocto sample code):
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:libx32"
DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"
We fail to compile simple CPP programs because CPP cannot
find relevant header files, looking for them in a non-existing place.
To fix this, we create a symlink of the name CPP expects and point it to
the corresponding existing directory.
[YOCTO#10354]
[YOCTO#10380]
(From OE-Core rev: 9f9be229040f4f9a523a1e25afd78d5c3f4efc23)
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-runtime.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc index 321a6deda4..15252f1a40 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc | |||
@@ -95,6 +95,14 @@ do_install_append_class-target () { | |||
95 | ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux | 95 | ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux |
96 | fi | 96 | fi |
97 | fi | 97 | fi |
98 | if [ "${TARGET_OS}" = "linux-gnux32" ]; then | ||
99 | if [ "${MULTILIBS}" != "" ]; then | ||
100 | mkdir ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}-poky-linux | ||
101 | ln -s ../${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}-poky-linux/x32 | ||
102 | else | ||
103 | ln -s ${TARGET_SYS} ${D}${includedir}/c++/${BINV}/${TARGET_ARCH}${TARGET_VENDOR}-linux | ||
104 | fi | ||
105 | fi | ||
98 | 106 | ||
99 | if [ "${TCLIBC}" != "glibc" ]; then | 107 | if [ "${TCLIBC}" != "glibc" ]; then |
100 | case "${TARGET_OS}" in | 108 | case "${TARGET_OS}" in |