[mpich-discuss] Compiling shared libraries with Fortran 77 compiler and unexpected option
Dave Goodell
goodell at mcs.anl.gov
Wed Sep 7 09:38:59 CDT 2011
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
>
> LDFLAGS="$LDFLAGS $MPICH2LIB_LDFLAGS"
>
> in configure.in line 275 and later in line 6166 setting
>
> WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS $LDFLAGS"
>
> I propose to add
>
> wrapper_saved_LDFLAGS=$LDFLAGS
>
> before line 275 and later use
>
> WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS $wrapper_saved_LDFLAGS"
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.
Your "fix" completely omits all libraries and flags that were discovered during the bulk of the configure process. Alternatively we could add everything that we discover but leave out the MPICH2LIB_LDFLAGS, but that would mean that we were blindly including a subset of the tested flags without having actually tested that exact subset together. Let me talk to Pavan offline and think about this some more and see if there's anything we can do.
-Dave
More information about the mpich-discuss
mailing list