llvm: install llvm-config in crossscripts
PATCH 1/1 llvm: install llvm-config in crossscripts
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 <[email protected]>
--- meta-oe/recipes-core/llvm/llvm.inc | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-core/llvm/llvm.inc +1 -0
@@ -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() {
Signature · 1 line
1.8.3
Quoted 15 lines · Jonathan Liu
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 <[email protected]>--- meta-oe/recipes-core/llvm/llvm.inc | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-core/llvm/llvm.inc +0
-0
meta-oe/recipes-core/llvm/llvm.inc llvm_sysroot_preprocess() { · line 166
Quoted 7 lines
meta-oe/recipes-core/llvm/llvm.inc +1
-0@@ -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() {
Please disregard this patch. It seems to be installing it incorrectly.
Regards,
Jonathan