gfortran, -static and cctools
Andrew Pinski
pinskia@physics.uc.edu
Sun Sep 10 17:51:00 GMT 2006
On Sun, 2006-09-10 at 12:36 -0400, Jack Howarth wrote:
> Does anyone understand why gfortran on Darwin PPC is unable
> to link with the -static flag. If I build current gcc trunk with
> Xcode 2.4 (which is required now because of the literal16 change
> unless the autoconf hack is added), I find that...
>
> gfortran -O3 -g -static nan_inf_fmt.f90
>
> ...generates the linker error...
>
> /usr/bin/ld: can't locate file for: -lcrt0.o
> collect2: ld returned 1 exit status
Apple does not supply the libraries needed to support -static
and really you should not need to use that option at all.
-- Pinski
More information about the Fortran
mailing list