diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-11 10:35:45 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 13:41:32 +0100 |
commit | 9a309684cfff5e1de3dbcc9690fc73d344e63ecd (patch) | |
tree | 5776a42f1cdd7c05c0cf5fb07e7dad705d99e03f /meta/classes/cross-canadian.bbclass | |
parent | 7cabc9ec11385b1f7595a0536c6f88318162adbd (diff) | |
download | poky-9a309684cfff5e1de3dbcc9690fc73d344e63ecd.tar.gz |
gcc-runtime, libgcc: Symlink c++ header and startup files in target_triplet for SDK use
We build SDKs such that gcc-cross-candian is built for only one
target *-*-linux and then use -muclibc or -mmusl to let it compile
code for other libc variants. This works fine when libc = glibc
however it does not work for c++ programs when libc != glibc since
there are c++ headers installed under ${includedir}/c++/${BINV}/${TARGET_SYS}
which is fine when gcc-runtime and gcc-cross-candian uses same --target options
gxx includedir searches in right triplet, but it fails with musl/uclibc
since gcc will look for glibc based triplet but gcc-runtime will install
them under musl/uclibc triplet.
This patch symlinks the musl/uclibc triplet to glibc triplet when libc != glibc
This fixes SDKs for musl/uclibc
(From OE-Core rev: fcaaabb401fffcda4db9a7d1f927a2a404e4776d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cross-canadian.bbclass')
-rw-r--r-- | meta/classes/cross-canadian.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index e07b1bdb6c..d35451dbf2 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
@@ -68,6 +68,7 @@ python () { | |||
68 | elif tarch == "mips64": | 68 | elif tarch == "mips64": |
69 | d.appendVar("CANADIANEXTRAOS", " linux-gnun32 linux-uclibcn32 linux-musln32") | 69 | d.appendVar("CANADIANEXTRAOS", " linux-gnun32 linux-uclibcn32 linux-musln32") |
70 | if tarch == "arm" or tarch == "armeb": | 70 | if tarch == "arm" or tarch == "armeb": |
71 | d.appendVar("CANADIANEXTRAOS", " linux-musleabi linux-uclibceabi") | ||
71 | d.setVar("TARGET_OS", "linux-gnueabi") | 72 | d.setVar("TARGET_OS", "linux-gnueabi") |
72 | else: | 73 | else: |
73 | d.setVar("TARGET_OS", "linux") | 74 | d.setVar("TARGET_OS", "linux") |