Open
Description
By default my yocto project use TCLIBC="gnu". However I need to compile fully static rust app using TCLIBC="must"
Is there a way to setup rust toolchain different from (or additional to) the default target TCLIBC?
I soled it introducing RUST_TCLIBC="musl" and patching classes/rust-common.bbclass like this.
- tclibc = d.getVar("TCLIBC", True)
+ tclibc = d.getVar("RUST_TCLIBC", True)
+ if tclibc == "":
+ tclibc = d.getVar("TCLIBC", True)
Is there a way to do this without patching rust-common.bbclass? Can we introduce RUST_TCLIBC variable to defining TCLIBC for rust?
Metadata
Metadata
Assignees
Labels
No labels