From: Thomas Petazzoni Date: Thu, 16 Jul 2009 22:26:23 +0000 (+0200) Subject: external toolchain: copy the C++ standard library if needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28aa0b47fb5bcb46ddcc24fdb5cc5466c094024f;p=buildroot.git external toolchain: copy the C++ standard library if needed Obey the BR2_INSTALL_LIBSTDCPP configuration option to copy the C++ standard library to the target. Suggested by Lionel Landwerlin . Signed-off-by: Thomas Petazzoni --- diff --git a/toolchain/external-toolchain/ext-tool.mk b/toolchain/external-toolchain/ext-tool.mk index 6df48f0b0b..e772cda7ea 100644 --- a/toolchain/external-toolchain/ext-tool.mk +++ b/toolchain/external-toolchain/ext-tool.mk @@ -190,6 +190,10 @@ else EXTERNAL_LIBS+=ld-linux.so libnss_files.so endif +ifeq ($(BR2_INSTALL_LIBSTDCPP),y) +EXTERNAL_LIBS+=libstdc++.so +endif + SYSROOT_DIR=$(shell LANG=C $(TARGET_CC) -v 2>&1 | grep ^Configured | tr " " "\n" | grep -- "--with-sysroot" | cut -f2 -d=) $(STAMP_DIR)/ext-toolchain-installed: