Skip to contentSkip to conversation

llvm: install llvm-config in crossscripts

PATCH In review Jonathan Liu 1 participant 2 messages May 31, 2013

lore
Share & tools
lore
#0 lore raw

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.

---
 meta-oe/recipes-core/llvm/llvm.inc | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-core/llvm/llvm.inc +1 -0
index a56fda0..59f4f25 100644
@@ -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
#1 lore raw
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.

---
  meta-oe/recipes-core/llvm/llvm.inc | 1 +
  1 file changed, 1 insertion(+)
meta-oe/recipes-core/llvm/llvm.inc +0 -0
index a56fda0..59f4f25 100644

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