From fb362d85819bb0f2be6fa5eea7594270c4ced483 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 20 Jan 2019 23:37:42 -0800 Subject: libcxx,compiler-rt: Append to CXX along with TARGET_CXXFLAGS to carry -stdlib flag Since TARGET_CXXFLAGS does not get passed into all packages Signed-off-by: Khem Raj --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 924f95f..2d7dc1a 100644 --- a/README.md +++ b/README.md @@ -45,14 +45,16 @@ Note that by default libstdc++ will remain the default C++ standard library, how libc++ to be the default one then set ```python -TARGET_CXXFLAGS_append_toolchain-clang ?= " -stdlib=libc++ " +CXX_append_toolchain-clang = " -stdlib=libc++ " +TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " ``` in local.conf. You can select libc++ per package too by writing bbappends for them containing ```python -TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " +CXX_append_toolchain-clang_pn- = " -stdlib=libc++ " +TARGET_CXXFLAGS_append_toolchain-clang_pn- = " -stdlib=libc++ " ``` # Building @@ -82,7 +84,7 @@ and OE will start using gcc to cross compile that recipe. And if a component does not build with libc++, you can add it to conf/nonclangable.inc e.g. ```shell -TARGET_CXXFLAGS_remove_pn-_toolchain-clang = " -stdlib=libc++ " +CXX_remove_pn-_toolchain-clang = " -stdlib=libc++ " ``` # Dependencies -- cgit v1.2.3-54-g00ecf