diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -45,14 +45,16 @@ Note that by default libstdc++ will remain the default C++ standard library, how | |||
45 | libc++ to be the default one then set | 45 | libc++ to be the default one then set |
46 | 46 | ||
47 | ```python | 47 | ```python |
48 | TARGET_CXXFLAGS_append_toolchain-clang ?= " -stdlib=libc++ " | 48 | CXX_append_toolchain-clang = " -stdlib=libc++ " |
49 | TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " | ||
49 | ``` | 50 | ``` |
50 | 51 | ||
51 | in local.conf. | 52 | in local.conf. |
52 | You can select libc++ per package too by writing bbappends for them containing | 53 | You can select libc++ per package too by writing bbappends for them containing |
53 | 54 | ||
54 | ```python | 55 | ```python |
55 | TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " | 56 | CXX_append_toolchain-clang_pn-<recipe> = " -stdlib=libc++ " |
57 | TARGET_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. | |||
82 | And if a component does not build with libc++, you can add it to conf/nonclangable.inc e.g. | 84 | And if a component does not build with libc++, you can add it to conf/nonclangable.inc e.g. |
83 | 85 | ||
84 | ```shell | 86 | ```shell |
85 | TARGET_CXXFLAGS_remove_pn-<recipe>_toolchain-clang = " -stdlib=libc++ " | 87 | CXX_remove_pn-<recipe>_toolchain-clang = " -stdlib=libc++ " |
86 | ``` | 88 | ``` |
87 | 89 | ||
88 | # Dependencies | 90 | # Dependencies |