Skip to contentSkip to conversation

cross-canadian: make android pass target sys check

PATCH New Hsia-Jun Li 1 participant 1 message Sep 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cross-canadian: make android pass target sys check

From: "Hsia-Jun(Randy) Li" <[email protected]>

We could build an Android toolchain but its triple should always contain the string android or clang can't link the right object files for it.

---
 meta/classes/cross-canadian.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/cross-canadian.bbclass +2 -0
index 447a2bb..ffbc216 100644
@@ -40,6 +40,8 @@ python () {
     extralibcs = [""]
     if "musl" in d.getVar("BASECANADIANEXTRAOS"):
         extralibcs.append("musl")
+    if "android" in tos:
+        extralibcs.append("android")
     for variant in ["", "spe", "x32", "eabi", "n32", "_ilp32"]:
         for libc in extralibcs:
             entry = "linux"
Signature · 1 line
2.7.4