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 libb.la to
liba.la in a's Makefile.am.
Look in ompi/mca/btl/sm/Makefile.am for how we link a common library
against the sm btl for an example.
Does that help?