Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Library dependencies
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-08-17 08:44:58

On Aug 16, 2009, at 6:39 PM, Graham, Richard L. wrote:

> A question about library dependencies in the ompi build system. I
> am creating a new ompi component that has uses routines out of ompi/
> common/a and ompi/common/b . How do I get routines from ompi/common/
> a to pick up the symbols in ompi/common/b ? The symbol I am after
> is clearly in libmca_common_netpatterns.0.dylib with global
> visibility (T), but is not being picked up at run-time. Any hints
> would be appreciated.

As long as you have a linear set of dependencies (i.e., a depends on b
but b does NOT depends on a), then you can just link to in a's

Look in ompi/mca/btl/sm/ for how we link a common library
against the sm btl for an example.

Does that help?

Jeff Squyres