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:
parent
3026e9930e
commit
28aa0b47fb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user