I have a case where I want to statically link the compiler libraries. In this case, the PGI compiler provides the -Bstatic_pgi flag which adds '-Bstatic' in front of its libraries. This information is lost, and the compiler does not check for its own libraries on the compile line to add the flag in front of. The attached patch adds cases for the '-Bstatic' and '-Bdynamic' flags in the _AC_FC_LIBRARY_LDFLAGS macro. Is there any chance of getting this in?
If so, the ld man page mentions other similar flags, but I did not add those. Chris
fortran.m4.patch
Description: Binary data
