]> git.ipfire.org Git - thirdparty/autoconf.git/commit
cross-compiling: handling modern platforms able to run foreign binaries.
authorJehan <jehan@girinstud.io>
Wed, 2 Oct 2013 05:53:50 +0000 (18:53 +1300)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Aug 2014 00:06:45 +0000 (17:06 -0700)
commitfbec57294abd097fdc5894e0ec0d0133a0b5445b
tree56f32a11844a1be26932cec517a9e6ce94b6d0b5
parentf6156ba05083625751a23fe2df1cd6694f42f356
cross-compiling: handling modern platforms able to run foreign binaries.

* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_CROSS):
When only --host is set, and no --build, but in the end, the resulting
computed $build and $host are different, set $cross_compiling = yes.
Indeed we can't rely only on a successful test program run, because false
positives occur on some platforms. In particular modern GNU/Linux
distributions set Wine to automatically handle Windows binaries.
Consequently $cross_compiling gets set to "no" even though we are in an
obvious cross-compilation case.
(tiny change)
lib/autoconf/lang.m4