[bug] autotools.configure() uses --host and --build when cross-compiling
See original GitHub issue for flag, var in (("host", self._host), ("build", self._build), ("target", self._target)):
if var and flag not in user_args_str:
configure_args.append('--{}={}'.format(flag, var))
The old conans autotools_environment.py had parameters to set build=False
host=False`, to prevent the configure script from being called with --host and --build.
That seems like a useful thing for one problematic recipe: libvpx
It has a custom configure script that does not handle --host and --build.
One way to workaround this is to patch the script so it accepts and ignores these parameters. This sounds fragile.
The other way is to generate my own call to the configure script. This seems appropriate and simpler than adding more cruft to the conan core. https://github.com/conan-io/conan-center-index/pull/13799
So, I thought I should raise this to see what you guys thought.
Issue Analytics
- State:
- Created 9 months ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Hosts and Cross-Compilation - Autoconf
If you specify --host , but not --build , when configure performs the first compiler test it tries to run an executable produced...
Read more >[bug] during crossbuild, build requirements are buit for host ...
When cross building a package and rebuilding all its dependencies, all its dependencies, including build requirements, are built using the ...
Read more >Cross-compiling for ARM with Autoconf
System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD].
Read more >3 Cross Compiling Erlang/OTP
This document describes how to cross compile Erlang/OTP-25. You are advised to read the whole document before attempting to cross compile Erlang/OTP.
Read more >Use the NDK with other build systems
Some makefile projects allow cross compilation by overriding the same variables that you would with an autoconf project. As an example, the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not at all. You pass only the arguments that you want to change, the rest of them are unaffected. For instance:
@paulharris
Only to clarify the issue’s title, it says always, but it’s only happening when
cross-compiling
, isn’t it?