On 17 Sep 2026, at 17:31, Enrico Scholz <[email protected]> wrote: > > "Ross Burton via lists.openembedded.org" > <[email protected]> writes: > >> Add the flags to CARGO_BUILD_FLAGS so that they get used in all calls >> and do_install no longer does any building. >> >> +CARGO_BUILD_FLAGS += "\ >> + --destdir ${D} \ >> + --prefix ${prefix} \ >> + --libdir ${libdir} \ >> + --library-type cdylib \ >> + " > > Most/all of these flags are not supported by cargo and will break recipes > which use it directly (e.g. by inheriting the ptest-cargo class): > > | ERROR: ... do_compile_ptest_cargo: Unable to compile test with cargo, > '.../cargo build ... --destdir ...' failed > > It would be better to define and use a dedicated variable > (e.g. CARGO_C_BUILD_FLAGS).
Ah. Is there a recipe in a public layer that can be used to demonstrate this? Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246531): https://lists.openembedded.org/g/openembedded-core/message/246531 Mute This Topic: https://lists.openembedded.org/mt/120596993/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
