Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2005-09-23 12:07:29

Hi George,

* George Bosilca wrote on Fri, Sep 23, 2005 at 06:05:28PM CEST:
> But I still see a problem. **Just to refresh the memories, I'm the only
> complaining on a regular base about the useless dependencies**. And
> there are a lot. I know that most of the shared libraries in ompi use
> functions in the opal section. But few of them rely on any of the orte
> shared libraries. If the dependencies are set correctly then we don't
> have to add
> $(top_ompi_builddir)/ompi/
> $(top_ompi_builddir)/orte/
> $(top_ompi_builddir)/opal/
> all over the Makefiles.

This is basically what I suggested to Jeff as well. It's more work to
keep things accurate this way, though, unless you manage to impose
strict rule this way.

By the way, it might be possible to check this more-or-less with some
automatisms, on a capable platform. I.e., on a recent GNU/Linux you
could verify whether some deplib was really needed (with comparing
DT_NEEDED with and without --as-needed); on Solaris/CC, you could
check the other way round: find any missing dependency with Libtool's
option -no-undefined.

Not great, but it might suffice for a regression test.
If you like, I can think of hacking something like this up.