gfortran, -static and cctools
Eric Christopher
echristo@apple.com
Sun Sep 10 19:53:00 GMT 2006
Steve Kargl wrote:
> On Sun, Sep 10, 2006 at 12:36:20PM -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
FWIW crt0.o doesn't exist on darwin. I really don't suggest -static
either. What are you trying to do?
-eric
More information about the Fortran
mailing list