[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autoconf does not support cross compilation.

From: R0b0t1
Subject: Autoconf does not support cross compilation.
Date: Thu, 9 Mar 2017 21:20:33 -0600


Others as well as myself have encountered issues with cross compiling
various programs making use of configuration scripts created with
autoconf. The main issue is that the cross compilation environment
causes configuration scripts to produce feature detection binaries
matching the architecture of the compilation target, not the
compilation host. E.g. the script will try to run an ARM binary on an
x86 processor.

Here are two example bugs, filed with the respective project in the
hopes of an interim solution:


Per my reasoning in those bug reports, my suggestion is to provide
another way to pass information to the configuration script. While it
seems possible to make configuration scripts compile and run binaries
of the proper architecture any results they obtain are irrelevant as
they reflect the capabilities of the host, not the target.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]