[mpich-discuss] Compiling shared libraries with Fortran 77 compiler and unexpected option

Dave Goodell goodell at mcs.anl.gov
Wed Sep 7 13:40:54 CDT 2011


On Sep 7, 2011, at 12:26 PM CDT, Thomas Jahns wrote:

> On 09/07/2011 04:54 PM, Dave Goodell wrote:
>> On Sep 7, 2011, at 9:38 AM CDT, Dave Goodell wrote:
>> 
>>> On Sep 7, 2011, at 8:24 AM CDT, Thomas Jahns wrote:
>>> 
>>>> there is one other problem still: MPICH2LIB_LDFLAGS do still end up in the
>>>> wrapper, despite documentation indicating otherwise. This is the result of setting
>>> 
>>> Hmm... this is a tricky area of the configure.  There is a tension between wanting to discover some needed libraries and/or library search paths automatically in configure (think -lmx and -L/path/to/mx/lib) and putting exactly what the user asked for in the wrapper linking flags.
>> 
>> FWIW, it looks like we have had this problem reported to us before and didn't change things for some reason:
> 
> in that case one might separate additions to LDFLAGS that configure discovers
> from stuff the user put in LDFLAGS? Should be doable by first getting the number
> of characters in the original LDFLAGS variable and then using dd or some other
> standard UNIX utility that can count characters?

That or perhaps we should always be adding these values to the WRAPPER_LIBS/WRAPPER_LDFLAGS at the same locations that we are adding them to LIBS/LDFLAGS.

I agree though that the current docs and behavior don't agree and that this is a bug.  I just don't have a good fix for you at the moment.

-Dave



More information about the mpich-discuss mailing list