"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).



Enrico
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246078): 
https://lists.openembedded.org/g/openembedded-core/message/246078
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to