Skip to content

Commit bac4f34

Browse files
committed
mca: Dynamic components link against project lib
* Resolves #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]>
1 parent 308e115 commit bac4f34

File tree

190 files changed

+443
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+443
-80
lines changed

ompi/mca/bml/r2/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Copyright (c) 2004-2005 The Regents of the University of California.
99
# All rights reserved.
1010
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
11+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
1112
# $COPYRIGHT$
1213
#
1314
# Additional copyrights may follow
@@ -37,6 +38,7 @@ mcacomponentdir = $(ompilibdir)
3738
mcacomponent_LTLIBRARIES = $(component_install)
3839
mca_bml_r2_la_SOURCES = $(r2_sources)
3940
mca_bml_r2_la_LDFLAGS = -module -avoid-version
41+
mca_bml_r2_la_LIBADD = $(top_builddir)/ompi/lib@[email protected]
4042

4143
noinst_LTLIBRARIES = $(component_noinst)
4244
libmca_bml_r2_la_SOURCES = $(r2_sources)

ompi/mca/coll/basic/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# Copyright (c) 2012 Sandia National Laboratories. All rights reserved.
1414
# Copyright (c) 2013 Los Alamos National Security, LLC. All rights
1515
# reserved.
16+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
1617
# $COPYRIGHT$
1718
#
1819
# Additional copyrights may follow
@@ -63,6 +64,7 @@ mcacomponentdir = $(ompilibdir)
6364
mcacomponent_LTLIBRARIES = $(component_install)
6465
mca_coll_basic_la_SOURCES = $(sources)
6566
mca_coll_basic_la_LDFLAGS = -module -avoid-version
67+
mca_coll_basic_la_LIBADD = $(top_builddir)/ompi/lib@[email protected]
6668

6769
noinst_LTLIBRARIES = $(component_noinst)
6870
libmca_coll_basic_la_SOURCES =$(sources)

ompi/mca/coll/cuda/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# of Tennessee Research Foundation. All rights
44
# reserved.
55
# Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
6+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
67
# $COPYRIGHT$
78
#
89
# Additional copyrights may follow
@@ -31,6 +32,7 @@ mcacomponentdir = $(ompilibdir)
3132
mcacomponent_LTLIBRARIES = $(component_install)
3233
mca_coll_cuda_la_SOURCES = $(sources)
3334
mca_coll_cuda_la_LDFLAGS = -module -avoid-version
35+
mca_coll_cuda_la_LIBADD = $(top_builddir)/ompi/lib@[email protected]
3436

3537
noinst_LTLIBRARIES = $(component_noinst)
3638
libmca_coll_cuda_la_SOURCES =$(sources)

ompi/mca/coll/demo/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Copyright (c) 2004-2005 The Regents of the University of California.
1111
# All rights reserved.
1212
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
13+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
1314
# $COPYRIGHT$
1415
#
1516
# Additional copyrights may follow
@@ -56,6 +57,7 @@ mcacomponentdir = $(ompilibdir)
5657
mcacomponent_LTLIBRARIES = $(component_install)
5758
mca_coll_demo_la_SOURCES = $(sources)
5859
mca_coll_demo_la_LDFLAGS = -module -avoid-version
60+
mca_coll_demo_la_LIBADD = $(top_builddir)/ompi/lib@[email protected]
5961

6062
noinst_LTLIBRARIES = $(component_noinst)
6163
libmca_coll_demo_la_SOURCES = $(sources)

ompi/mca/coll/fca/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
#
44
# Copyright (c) 2011 Mellanox Technologies. All rights reserved.
5+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
56
# $COPYRIGHT$
67
#
78
# Additional copyrights may follow
@@ -37,7 +38,8 @@ endif
3738
mcacomponentdir = $(ompilibdir)
3839
mcacomponent_LTLIBRARIES = $(component_install)
3940
mca_coll_fca_la_SOURCES = $(coll_fca_sources)
40-
mca_coll_fca_la_LIBADD = $(coll_fca_LIBS)
41+
mca_coll_fca_la_LIBADD = $(top_builddir)/ompi/lib@[email protected] \
42+
$(coll_fca_LIBS)
4143
mca_coll_fca_la_LDFLAGS = -module -avoid-version $(coll_fca_LDFLAGS)
4244

4345
noinst_LTLIBRARIES = $(component_noinst)

ompi/mca/coll/hcoll/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright (c) 2011 Mellanox Technologies. All rights reserved.
55
# Copyright (c) 2015 Research Organization for Information Science
66
# and Technology (RIST). All rights reserved.
7+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
78
# $COPYRIGHT$
89
#
910
# Additional copyrights may follow
@@ -38,7 +39,8 @@ endif
3839
mcacomponentdir = $(ompilibdir)
3940
mcacomponent_LTLIBRARIES = $(component_install)
4041
mca_coll_hcoll_la_SOURCES = $(coll_hcoll_sources)
41-
mca_coll_hcoll_la_LIBADD = $(coll_hcoll_LIBS)
42+
mca_coll_hcoll_la_LIBADD = $(top_builddir)/ompi/lib@[email protected] \
43+
$(coll_hcoll_LIBS)
4244
mca_coll_hcoll_la_LDFLAGS = -module -avoid-version $(coll_hcoll_LDFLAGS)
4345

4446
noinst_LTLIBRARIES = $(component_noinst)

ompi/mca/coll/inter/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Copyright (c) 2004-2005 The Regents of the University of California.
1111
# All rights reserved.
1212
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
13+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
1314
# $COPYRIGHT$
1415
#
1516
# Additional copyrights may follow
@@ -32,6 +33,7 @@ mcacomponentdir = $(ompilibdir)
3233
mcacomponent_LTLIBRARIES = $(component_install)
3334
mca_coll_inter_la_SOURCES = $(sources)
3435
mca_coll_inter_la_LDFLAGS = -module -avoid-version
36+
mca_coll_inter_la_LIBADD = $(top_builddir)/ompi/lib@[email protected]
3537

3638
noinst_LTLIBRARIES = $(component_noinst)
3739
libmca_coll_inter_la_SOURCES = $(sources)

ompi/mca/coll/libnbc/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# reserved.
1515
# Copyright (c) 2017 Research Organization for Information Science
1616
# and Technology (RIST). All rights reserved.
17+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
1718
# $COPYRIGHT$
1819
#
1920
# Additional copyrights may follow
@@ -71,6 +72,7 @@ mcacomponentdir = $(ompilibdir)
7172
mcacomponent_LTLIBRARIES = $(component_install)
7273
mca_coll_libnbc_la_SOURCES = $(sources)
7374
mca_coll_libnbc_la_LDFLAGS = -module -avoid-version
75+
mca_coll_libnbc_la_LIBADD = $(top_builddir)/ompi/lib@[email protected]
7476

7577
noinst_LTLIBRARIES = $(component_noinst)
7678
libmca_coll_libnbc_la_SOURCES =$(sources)

ompi/mca/coll/monitoring/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#
22
# Copyright (c) 2016 Inria. All rights reserved.
3+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
34
# $COPYRIGHT$
45
#
56
# Additional copyrights may follow
@@ -45,7 +46,7 @@ mcacomponentdir = $(ompilibdir)
4546
mcacomponent_LTLIBRARIES = $(component_install)
4647
mca_coll_monitoring_la_SOURCES = $(monitoring_sources)
4748
mca_coll_monitoring_la_LDFLAGS = -module -avoid-version
48-
mca_coll_monitoring_la_LIBADD = \
49+
mca_coll_monitoring_la_LIBADD = $(top_builddir)/ompi/lib@[email protected] \
4950
$(OMPI_TOP_BUILDDIR)/ompi/mca/common/monitoring/libmca_common_monitoring.la
5051

5152
noinst_LTLIBRARIES = $(component_noinst)

ompi/mca/coll/portals4/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#
22
# Copyright (c) 2013-2015 Sandia National Laboratories. All rights reserved.
33
# Copyright (c) 2015 Bull SAS. All rights reserved.
4+
# Copyright (c) 2017 IBM Corporation. All rights reserved.
45
# $COPYRIGHT$
56
#
67
# Additional copyrights may follow
@@ -32,7 +33,8 @@ AM_CPPFLAGS = $(coll_portals4_CPPFLAGS)
3233
mcacomponentdir = $(ompilibdir)
3334
mcacomponent_LTLIBRARIES = $(component_install)
3435
mca_coll_portals4_la_SOURCES = $(local_sources)
35-
mca_coll_portals4_la_LIBADD = $(coll_portals4_LIBS)
36+
mca_coll_portals4_la_LIBADD = $(top_builddir)/ompi/lib@[email protected] \
37+
$(coll_portals4_LIBS)
3638
mca_coll_portals4_la_LDFLAGS = -module -avoid-version $(coll_portals4_LDFLAGS)
3739

3840
noinst_LTLIBRARIES = $(component_noinst)

0 commit comments

Comments
 (0)