autotools-rs icon indicating copy to clipboard operation
autotools-rs copied to clipboard

Pass --target argument to ./configure script

Open otavio opened this issue 4 years ago • 6 comments

Signed-off-by: Otavio Salvador [email protected]

otavio avatar Dec 24 '19 18:12 otavio

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.

otavio avatar Dec 26 '19 11:12 otavio

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)

althonos avatar Dec 26 '19 13:12 althonos

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

otavio avatar Dec 26 '19 13:12 otavio

What are you trying to build? A testcase would be indeed enlightening :)

lu-zero avatar Dec 30 '19 11:12 lu-zero

We were building an internal fork of rusb. In fact, cross compiling it to Windows.

otavio avatar Dec 30 '19 11:12 otavio

News on this?

otavio avatar Jan 15 '20 20:01 otavio