[oe] [meta-oe][PATCH] llvm: install llvm-config in crossscripts

Jonathan Liu net147 at gmail.com
Fri May 31 13:48:54 UTC 2013


The llvm-config script was being installed to the native sysroot but not
in crossscripts. As a result, recipes would pick up the native
llvm-config which would give flags for native LLVM instead of target
LLVM and result in compile errors.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
---
 meta-oe/recipes-core/llvm/llvm.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
index a56fda0..59f4f25 100644
--- a/meta-oe/recipes-core/llvm/llvm.inc
+++ b/meta-oe/recipes-core/llvm/llvm.inc
@@ -160,6 +160,7 @@ llvm_sysroot_preprocess() {
 
         install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
         install -m 0755 bin/llvm-config${LLVM_RELEASE} ${SYSROOT_DESTDIR}${bindir_crossscripts}
+        install -m 0755 bin/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}
 }
 
 do_install_virtclass-native() {
-- 
1.8.3




More information about the Openembedded-devel mailing list