From cda2283e4cf3c90ea42b43dbc3a2268be6655670 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 18 May 2021 22:27:41 -0700 Subject: Replace --stdlibc=libc++ with -stdlibc=libc++ This ensures that it matches with CMake's understanding of this option and when its removed then it silently removes -stdlibc=libc++ but leaves the spurious '-' in the commandline which confuses the compiler as it them expects input from stdin Signed-off-by: Khem Raj --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 826b8b3..3aa42da 100644 --- a/README.md +++ b/README.md @@ -76,14 +76,14 @@ if needed to by modifying `LIBCPLUSPLUS` variable, usually defaults used by `RUN best fit. e.g. below we select LLVM C++ as default C++ runtime. ```shell -LIBCPLUSPLUS = "--stdlib=libc++" +LIBCPLUSPLUS = "-stdlib=libc++" ``` in `local.conf`. You can select libstdc++ per package too by writing bbappends for them containing ```shell -LIBCPLUSPLUS_toolchain-clang_pn- = "--stdlibc=libc++" +LIBCPLUSPLUS_toolchain-clang_pn- = "-stdlibc=libc++" ``` Defaults are chosen to be GNU for maximum compatibility with existing GNU systems. Its always good to use single runtime on a system, mixing runtimes can cause complications during -- cgit v1.2.3-54-g00ecf