[PATCH] libgfortran: fix error: Link tests are not allowed after GCC_NO_EXECUTABLES

Richard Guenther rguenther@suse.de
Mon Sep 22 15:02:00 GMT 2008


On Mon, 22 Sep 2008, Joseph S. Myers wrote:

> On Mon, 22 Sep 2008, Richard Guenther wrote:
> 
> > I guess libgfortran is not really ready for being cross-compiled :/
> 
> For being cross-compiled to generic bare-metal targets such as 
> powerpc-eabi where you can't do link tests (because unless an option such 
> as -msim to select particular board-support code is passed you can't link 
> at all, even with target libc present), maybe.  For cross-compiling to 
> GNU/Linux targets we require the target libc to be available for link 
> tests in order to configure libraries for non-C languages; you can't build 
> shared libraries without having the shared libc to link them with.

Right, but this is why I tried to circumvent this by specifying
--disable-shared -- shouldn't that work?  It seems to work for C++
and libstdc++ at least.

Richard.



More information about the Fortran mailing list