On Aug 24, 2006, at 9:34 PM, Bill Northcott wrote:
Following my last post I have done some digging on AC_FC_DUMMY_MAIN.
Using gcc4 and gfortran FLIBS include '-lgfortranbegin -
lgfortran'. libgfortranbegin defines _main and needs _MAIN__
Since the test program also defines _main it will never link
because of the multiply defined symbol! So the test for a dummy
main will never succeed.
This seems odd, my libgfortranbegin is a static archive, is yours?
Are you passing odd flags like -all_load which would force the main
defined in libgfortranbegin to be loaded?
What happens for me is that the main defined in the object is used
and the one in libgfortranbegin is ignored because a main has already
been found. At least that is what used to happen for me, I haven't
looked at it in quite a while...
Peter
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf