* Eric Blake wrote on Fri, Jan 23, 2009 at 05:33:28AM CET: > According to Christopher Hulbert on 1/22/2009 8:56 AM: > > 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? > > I'm not familiar with Fortran, so I'm hoping someone else will chime in.
I intend to try it out when I can. The Fortran support in Autoconf and Libtool is in dire need of more test exposure, so that we have a chance to measure the impact of changes like this one without waiting for bug reports after the next release to trickle in. For example, even with this patch, libtool-generated shared libraries will likely not get the right treatment here (whatever that is; it depends upon the libraries we're looking at here). Thanks, Ralf