summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro/include
diff options
context:
space:
mode:
authorAlejandro Enedino Hernandez Samaniego <alejandro@enedino.org>2020-01-18 19:01:59 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 23:49:39 +0000
commite261883a0fa673b6c11bd4f81669843c3f0f8af6 (patch)
treeaf1af642e1930e0c58d530b719f9db185825167c /meta/conf/distro/include
parent0b088f99e64d3a1cb9bf1793a9371220e40f6516 (diff)
downloadpoky-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/include')
-rw-r--r--meta/conf/distro/include/tclibc-newlib.inc7
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 32ASSUME_PROVIDED += "virtual/crypt"
31# we set ASSUME_PROVIDED because we cant set PREFERRED_PROVIDER
32# for compilerlibs since its overridden by tcmode-default
33ASSUME_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
36NEWLIB_EXTENDED ?= "libgloss libgcc" 35NEWLIB_EXTENDED ?= "libgloss libgcc"