diff options
author | Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> | 2020-01-18 19:01:59 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-19 23:49:39 +0000 |
commit | e261883a0fa673b6c11bd4f81669843c3f0f8af6 (patch) | |
tree | af1af642e1930e0c58d530b719f9db185825167c /meta/conf/distro | |
parent | 0b088f99e64d3a1cb9bf1793a9371220e40f6516 (diff) | |
download | poky-e261883a0fa673b6c11bd4f81669843c3f0f8af6.tar.gz |
newlib: Enable building libstdc++ for newlib based toolchains
Some baremetal applications might require support from libstdc++
On newlib based toolchains, libstdc++ can be built as a static
library that applications can then link against it.
Pass libsdtc++-(static)dev to LIBC_DEPENDENCIES allowing the
library to be present for cross compilation as well as on
sdk builds.
(From OE-Core rev: 18af9ecef6e247519d8a1573e32208bb69cf81fe)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro')
-rw-r--r-- | meta/conf/distro/include/tclibc-newlib.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/conf/distro/include/tclibc-newlib.inc b/meta/conf/distro/include/tclibc-newlib.inc index 896c0b16d7..8338003e31 100644 --- a/meta/conf/distro/include/tclibc-newlib.inc +++ b/meta/conf/distro/include/tclibc-newlib.inc | |||
@@ -25,12 +25,11 @@ LIBC_DEPENDENCIES = "\ | |||
25 | libgloss-dbg \ | 25 | libgloss-dbg \ |
26 | libgcc-dev \ | 26 | libgcc-dev \ |
27 | libgcc-dbg \ | 27 | libgcc-dbg \ |
28 | libstdc++-dev \ | ||
29 | libstdc++-staticdev \ | ||
28 | " | 30 | " |
29 | 31 | ||
30 | # compilerlibs defaults to gcc-runtime, but we get runtime from libgloss | 32 | ASSUME_PROVIDED += "virtual/crypt" |
31 | # we set ASSUME_PROVIDED because we cant set PREFERRED_PROVIDER | ||
32 | # for compilerlibs since its overridden by tcmode-default | ||
33 | ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}compilerlibs virtual/crypt" | ||
34 | 33 | ||
35 | # Its useful to be able to extend newlib, but we dont provide a native variant of libgloss | 34 | # Its useful to be able to extend newlib, but we dont provide a native variant of libgloss |
36 | NEWLIB_EXTENDED ?= "libgloss libgcc" | 35 | NEWLIB_EXTENDED ?= "libgloss libgcc" |