Hello Peter, Bill, * Peter O'Gorman wrote on Thu, Aug 24, 2006 at 02:47:04PM CEST: > On Aug 24, 2006, at 5:06 PM, Ralf Wildenhues wrote: > >* Bill Northcott wrote on Thu, Aug 24, 2006 at 09:59:40AM CEST: > >>_AC_FC_LIBRARY_LDFLAGS [... and -lgcc_s] > >>Neither is necessary because ld automatically includes them. Only if you don't use -nostdlib, then gfortran automatically includes them. > I can't approve or apply this patch, but want to note that it seems > reasonable to me. Looks like libgcc_s and libgcc_s.10.4 (essentially > the same thing) get added to the link line, one comes from the > compiler in /usr/local, the other from the compiler in /usr. Well, on some systems (also Darwin in some cases), Libtool uses -nostdlib in shared library creation. Wouldn't omitting gcc_s in this case cause missing symbols, at least if the output file is a module (say, it uses Fortran) and libgcc_s was not previously loaded by the main application (that, say, only uses C)? In that case it seems more appropriate to me to strip -lgcc_s from inside libtool in the cases where we know that we don't need it (i.e., when not using -nostdlib), rather than stripping it in _AC_FC_LIBRARY_LDFLAGS. Cheers, Ralf _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf