This is the mail archive of the
autoconf@gnu.org
mailing list for the autoconf project.
cross compilation
- To: Autoconf List <autoconf at gnu dot org>
- Subject: cross compilation
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 28 Sep 1999 13:54:01 -0600
- Reply-To: tromey at cygnus dot com
Here's another cross-compilation weirdness: in some situations the
compiler in use can't actually link an executable. This can happen
when building target libraries. Some code I have here has this
comment:
# FIXME: We temporarily define our own version of AC_PROG_CC. This is
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
# are probably using a cross compiler, which will not be able to fully
# link an executable. This should really be fixed in autoconf
# itself.
It would be nice to find a way to fix this. For instance, if we know
we are cross-compiling (from the command-line arguments), then we
could just not run the body of AC_PROG_CC_WORKS.
Tom