[oe] [PATCH] lld_git: Only apply -stdlib flag to clang toolchain
Ricardo Ribalda Delgado
ricardo.ribalda at gmail.com
Tue Jul 18 09:50:54 UTC 2017
GCC does not understand the stdlib flag. Resulting in this error during
configuration:
| x86_64-poky-linux-g++: error: unrecognized command line option
| '-stdlib=libc++'
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
---
recipes-devtools/clang/lld_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-devtools/clang/lld_git.bb b/recipes-devtools/clang/lld_git.bb
index 5b31ff5fdbc8..31af909d25ad 100644
--- a/recipes-devtools/clang/lld_git.bb
+++ b/recipes-devtools/clang/lld_git.bb
@@ -34,7 +34,7 @@ OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
EXTRA_OECMAKE = "\
-DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
"
-CXXFLAGS += "-stdlib=libc++"
+CXXFLAGS_toolchain-clang += "-stdlib=libc++"
do_compile() {
cd ${B}/tools/lld
--
2.13.2
More information about the Openembedded-devel
mailing list