-
Notifications
You must be signed in to change notification settings - Fork 900
mca: Dynamic components link against project lib #4140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mca: Dynamic components link against project lib #4140
Conversation
* This script will search for all of the `Makefile.am` files in each of the project-level components. Then it adds the project-level library to `mca_FRAMEWORK_COMPONENT_la_LIBADD`. - If the library is already in the LIBADD list then it's skipped. So it is safe to run multiple times on the same codebase. Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit 7a3f1ff) Signed-off-by: Joshua Hursey <[email protected]>
* Resolves open-mpi#3705 * Components should link against the project level library to better support `dlopen` with `RTLD_LOCAL`. * Extend the `mca_FRAMEWORK_COMPONENT_la_LIBADD` in the `Makefile.am` with the appropriate project level library: ``` MCA components in ompi/ $(top_builddir)/ompi/lib@[email protected] MCA components in orte/ $(top_builddir)/orte/lib@[email protected] MCA components in opal/ $(top_builddir)/opal/lib@[email protected] MCA components in oshmem/ $(top_builddir)/oshmem/liboshmem.la" ``` Note: The changes in this commit were automated by the script in the commit that proceeds it with the `libadd_mca_comp_update.py` script. Some components were not included in this change because they are statically built only. Signed-off-by: Joshua Hursey <[email protected]> Local application of the LIBADD script: `./contrib/libadd_mca_comp_update.py` Reference `master` commit e1d0795
* See discussion on Issue open-mpi#3705 regarding why this is no longer needed. Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit 49c40f0) Signed-off-by: Joshua Hursey <[email protected]>
fddefea
to
ab14746
Compare
Posting for consideration (if there is another rc) for v3.0.0. Otherwise it can slip to v3.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dalcinl can you confirm that this fixes the problem for you on the v3.0.x branch? (this is a cherry-pick from master, but we just want to confirm that we didn't miss anything specific for the v3.0.x branch)
@jsquyres I confirm the |
master
support
dlopen
withRTLD_LOCAL
.using the
mca_FRAMEWORK_COMPONENT_la_LIBADD
in theMakefile.am
.Note: The changes in this commit were automated. Some components
were not included because they are statically built only.