[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix for detecting fortran libraries on Darwin

From: Andreas Waechter
Subject: fix for detecting fortran libraries on Darwin
Date: Thu, 5 Feb 2004 14:57:38 -0500 (EST)


Autoconf 2.59 doesn't seem to handle the detection of fortran libraries
correctly on newer Darwin (MacOS) systems.  Typical error message is

checking for Fortran libraries of f77...  -lcrt2.o
-lfrtbegin -lg2c -lSystem
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails

Problem is that '-lcrt2.o' is thought to be part of the fortran libraries.

I seem to have fixed it by changing line 650 in lib/autoconf/fortran.m4

<         -lang* | -lcrt[[01]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | 


>         -lang* | -lcrt[[012]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | 
> -LANG:=*)

This seems also to be the cause for the failure reported in

Hope this helps.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]