This is the mail archive of the autoconf@gnu.org mailing list for the autoconf project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cross compilation


Hello, Tom!

> 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.

I don't think so.
In _most_ cases, the compiler should be able to link executables.
It is only in libc case when the ability to link anything other than
libraries is not required.

So it's libc where specific changes should be used.

Cheers,
Pavel Roskin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]