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
<lionel.landwerlin@openwide.fr>.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2009-07-17 00:26:23 +02:00
parent 3026e9930e
commit 28aa0b47fb

View File

@ -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: