[Top][All Lists]

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


From: Norman Gray
Subject: fortran.m4: _AC_FC_LIBRARY_LDFLAGS
Date: Tue, 3 Aug 2004 01:35:52 +0100


A one-liner:

In fortran.m4 _AC_FC_LIBRARY_LDFLAGS, the macro works through the flags returned from '$FC -v', including the case

          # Ignore these flags.
-lang* | -lcrt[[01]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)

On OSX with OpenDarwin g77 installed, however, there's also a -lcrt2.o:

Basil:tmp> g77 -v /dev/null
Driving: g77 -v /dev/null -lfrtbegin -lg2c
Reading specs from /Volumes/Boltzmann/opt/local/bin/../lib/gcc-lib/powerpc-apple- darwin7.3.1/3.3.3/specs Configured with: /Volumes/Faraday/w/ work/gcc-3.3.3/configure --prefix=/opt/local --enable-languages=c,f77 --infodir=/opt/local/share/info --mandir=/opt/local/share/man
Thread model: single
gcc version 3.3.3
/Volumes/Boltzmann/opt/local/bin/../lib/gcc-lib/powerpc-apple- darwin7.3.1/3.3.3/collect2 -dynamic -o a.out -lcrt1.o -lcrt2.o -L/Volumes/Boltzmann/opt/local/bin/../lib/gcc-lib/powerpc-apple- darwin7.3.1/3.3.3 -L/Volumes/Boltzmann/opt/local/bin/../lib/gcc-lib -L/opt/local/lib -L/opt/local/lib/gcc-lib/powerpc-apple-darwin7.3.1/3.3.3 -L/Volumes/Boltzmann/opt/local/bin/../lib/gcc-lib/powerpc-apple- darwin7.3.1/3.3.3/../../.. -L/opt/local/lib/gcc-lib/powerpc-apple-darwin7.3.1/3.3.3/../../.. /dev/null -lfrtbegin -lg2c -lgcc -lSystem |
/usr/bin/ld: file: /dev/null is empty (not an object or archive)
collect2: ld returned 1 exit status
Basil:tmp> uname -a
Darwin Basil.home 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh powerpc

...and this messes things up unless the case is changed so that it ignores "-lcrt[[012]].o". This is in autoconf 2.59.

All the best,


Norman Gray  :  Physics & Astronomy, Glasgow University, UK  :

reply via email to

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