summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-01-20 23:37:42 -0800
committerKhem Raj <raj.khem@gmail.com>2019-01-24 00:37:02 -0500
commitfb362d85819bb0f2be6fa5eea7594270c4ced483 (patch)
tree8c52bca5d1afe70f597a5680b8dc04ad6484e69b /README.md
parentc02adc7fdce0f4bd29617d1f583aa5cdfa485769 (diff)
downloadmeta-clang-fb362d85819bb0f2be6fa5eea7594270c4ced483.tar.gz
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 <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
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
45libc++ to be the default one then set 45libc++ to be the default one then set
46 46
47```python 47```python
48TARGET_CXXFLAGS_append_toolchain-clang ?= " -stdlib=libc++ " 48CXX_append_toolchain-clang = " -stdlib=libc++ "
49TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ "
49``` 50```
50 51
51in local.conf. 52in local.conf.
52You can select libc++ per package too by writing bbappends for them containing 53You can select libc++ per package too by writing bbappends for them containing
53 54
54```python 55```python
55TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " 56CXX_append_toolchain-clang_pn-<recipe> = " -stdlib=libc++ "
57TARGET_CXXFLAGS_append_toolchain-clang_pn-<recipe> = " -stdlib=libc++ "
56``` 58```
57 59
58# Building 60# Building
@@ -82,7 +84,7 @@ and OE will start using gcc to cross compile that recipe.
82And if a component does not build with libc++, you can add it to conf/nonclangable.inc e.g. 84And if a component does not build with libc++, you can add it to conf/nonclangable.inc e.g.
83 85
84```shell 86```shell
85TARGET_CXXFLAGS_remove_pn-<recipe>_toolchain-clang = " -stdlib=libc++ " 87CXX_remove_pn-<recipe>_toolchain-clang = " -stdlib=libc++ "
86``` 88```
87 89
88# Dependencies 90# Dependencies