autotools-rs
autotools-rs copied to clipboard
Pass --target argument to ./configure script
Signed-off-by: Otavio Salvador [email protected]
How so? it is used to figure if you are cross-compiling or not.
I got it working fine for us using this patch. Also, doc says it handles it automatically so it should do.
I think in autotools --host
is used for the platform you want to build to, not --target
(this is a remnant of autotools being used to compile compilers)
Did you try this? here it does work like a charm.
I think host
is indeed the new way but this does not fit the crate design. So if we intend to rework this, it'd be a breaking change as we'd need to support host
and build
variables.
Considering OpenEmbedded-Core, it also pass those. Check: https://github.com/openembedded/openembedded-core/blob/master/meta/classes/autotools.bbclass#L58-L60
What are you trying to build? A testcase would be indeed enlightening :)
We were building an internal fork of rusb
. In fact, cross compiling it to Windows.
News on this?