From 18af9ecef6e247519d8a1573e32208bb69cf81fe Mon Sep 17 00:00:00 2001 From: Alejandro Enedino Hernandez Samaniego Date: Sat, 18 Jan 2020 19:01:59 -0800 Subject: 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. Signed-off-by: Alejandro Enedino Hernandez Samaniego Signed-off-by: Richard Purdie --- meta/conf/distro/include/tclibc-newlib.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'meta/conf/distro') 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 = "\ libgloss-dbg \ libgcc-dev \ libgcc-dbg \ + libstdc++-dev \ + libstdc++-staticdev \ " -# compilerlibs defaults to gcc-runtime, but we get runtime from libgloss -# we set ASSUME_PROVIDED because we cant set PREFERRED_PROVIDER -# for compilerlibs since its overridden by tcmode-default -ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}compilerlibs virtual/crypt" +ASSUME_PROVIDED += "virtual/crypt" # Its useful to be able to extend newlib, but we dont provide a native variant of libgloss NEWLIB_EXTENDED ?= "libgloss libgcc" -- cgit 1.2.3-korg