Skip to content

Commit 4a55783

Browse files
committed
Rework things to replace hard-coded '-lopen-pal' with @OPAL_LIB_NAME@.
This makes it consistent with OMPI_LIBMPI_NAME. Replace/remove OPAL_LIB_PREFIX since it currently is unused/dead code. Signed-off-by: Austen Lauria <awlauria@us.ibm.com>
1 parent 847eefd commit 4a55783

File tree

85 files changed

+193
-190
lines changed

Some content is hidden

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

85 files changed

+193
-190
lines changed

config/opal_mca.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,12 +767,12 @@ AC_DEFUN([MCA_PROCESS_COMPONENT],[
767767
else
768768
if test "$2" = "common"; then
769769
# Static libraries in "common" frameworks are installed, and
770-
# therefore must obey the $FRAMEWORK_LIB_PREFIX that was
770+
# therefore must obey the $FRAMEWORK_LIB_NAME that was
771771
# set.
772-
$7="mca/$2/$3/lib${m4_translit([$1], [a-z], [A-Z])_LIB_PREFIX}mca_$2_$3.la $$7"
772+
$7="mca/$2/$3/lib${m4_translit([$1], [a-z], [A-Z])_LIB_NAME}mca_$2_$3.la $$7"
773773
else
774774
# Other frameworks do not have to obey the
775-
# $FRAMEWORK_LIB_PREFIX prefix.
775+
# $FRAMEWORK_LIB_NAME prefix.
776776
$7="mca/$2/$3/libmca_$2_$3.la $$7"
777777
fi
778778
echo "extern const mca_base_component_t mca_$2_$3_component;" >> $outfile.extern

config/opal_set_lib_prefix.m4 renamed to config/opal_set_lib_name.m4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212

1313
# OPAL_SET_LIB_PREFIX([library_prefix]
1414
#
15-
# This macro sets a prefix for the libopen-pal library. Specifically,
16-
# libopen-pal.la becomes libPREFIXopen-pal.la.
15+
# This macro sets a name for the libopen-pal library. Specifically,
16+
# libopen-pal.la becomes libopen-pal.la by default.
1717
#
1818
# --------------------------------------------------------
19-
AC_DEFUN([OPAL_SET_LIB_PREFIX],[
19+
AC_DEFUN([OPAL_SET_LIB_NAME],[
2020
AS_IF([test "$opal_lib_prefix_set" = "yes"],
21-
[AC_MSG_WARN([OPAL lib prefix was already set!])
21+
[AC_MSG_WARN([OPAL lib name was already set!])
2222
AC_MSG_WARN([This is a configury programming error])
2323
AC_MSG_ERROR([Cannot continue])])
2424

25-
OPAL_LIB_PREFIX=$1
25+
OPAL_LIB_NAME=$1
2626
opal_lib_prefix_set=yes
27-
AC_SUBST(OPAL_LIB_PREFIX)
27+
AC_SUBST(OPAL_LIB_NAME)
2828
])dnl
2929

3030
#

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ fi
328328

329329
# The library prefixes must be set before we call OPAL MCA. Here is
330330
# as good a place as any.
331-
OPAL_SET_LIB_PREFIX([])
331+
m4_ifdef([project_opal],
332+
[OPAL_SET_LIB_NAME([open-pal])])
333+
332334
m4_ifdef([project_ompi],
333335
[OMPI_SET_LIB_NAME([])])
334336

contrib/libadd_mca_comp_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import glob, os, re, shutil
99

10-
projects= {'opal' : ["$(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la"],
10+
projects= {'opal' : ["$(top_builddir)/opal/lib@OPAL_LIB_NAME@.la"],
1111
'ompi' : ["$(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la"],
1212
'oshmem' : ["$(top_builddir)/oshmem/liboshmem.la"],
1313
}

ompi/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ lib@OMPI_LIBMPI_NAME@_la_LIBADD = \
157157

158158

159159
lib@OMPI_LIBMPI_NAME@_la_LIBADD += \
160-
$(OMPI_TOP_BUILDDIR)/opal/lib@OPAL_LIB_PREFIX@open-pal.la
160+
$(OMPI_TOP_BUILDDIR)/opal/lib@OPAL_LIB_NAME@.la
161161
lib@OMPI_LIBMPI_NAME@_la_DEPENDENCIES = $(lib@OMPI_LIBMPI_NAME@_la_LIBADD)
162162
lib@OMPI_LIBMPI_NAME@_la_LDFLAGS = \
163163
-version-info $(libmpi_so_version) \

ompi/debuggers/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ headers = \
4646
dlopen_test_SOURCES = dlopen_test.c
4747
dlopen_test_LDADD = \
4848
$(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \
49-
$(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la
49+
$(top_builddir)/opal/lib@OPAL_LIB_NAME@.la
5050
dlopen_test_DEPENDENCIES = $(ompi_predefined_LDADD)
5151

5252
predefined_gap_test_SOURCES = predefined_gap_test.c

ompi/mca/coll/sm/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mcacomponent_LTLIBRARIES = $(component_install)
6363
mca_coll_sm_la_SOURCES = $(sources)
6464
mca_coll_sm_la_LDFLAGS = -module -avoid-version
6565
mca_coll_sm_la_LIBADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \
66-
$(OMPI_TOP_BUILDDIR)/opal/mca/common/sm/lib@OPAL_LIB_PREFIX@mca_common_sm.la
66+
$(OMPI_TOP_BUILDDIR)/opal/mca/common/sm/lib@OPAL_LIB_NAME@mca_common_sm.la
6767

6868
noinst_LTLIBRARIES = $(component_noinst)
6969
libmca_coll_sm_la_SOURCES =$(sources)

ompi/mca/common/monitoring/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ompi_monitoring_prof_la_LDFLAGS= \
3535
-module -avoid-version -shared $(WRAPPER_EXTRA_LDFLAGS)
3636
ompi_monitoring_prof_la_LIBADD = \
3737
$(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \
38-
$(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la
38+
$(top_builddir)/opal/lib@OPAL_LIB_NAME@.la
3939

4040
if OPAL_INSTALL_BINARIES
4141
bin_SCRIPTS = profile2mat.pl aggregate_profile.pl

ompi/mca/mtl/ofi/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ mca_mtl_ofi_la_LDFLAGS = \
8080
$(opal_ofi_LDFLAGS) \
8181
-module -avoid-version
8282
mca_mtl_ofi_la_LIBADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \
83-
$(OPAL_TOP_BUILDDIR)/opal/mca/common/ofi/lib@OPAL_LIB_PREFIX@mca_common_ofi.la \
83+
$(OPAL_TOP_BUILDDIR)/opal/mca/common/ofi/lib@OPAL_LIB_NAME@mca_common_ofi.la \
8484
$(opal_ofi_LIBS)
8585

8686
noinst_LTLIBRARIES = $(component_noinst)

ompi/mca/osc/ucx/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mcacomponentdir = $(pkglibdir)
3535
mcacomponent_LTLIBRARIES = $(component_install)
3636
mca_osc_ucx_la_SOURCES = $(ucx_sources)
3737
mca_osc_ucx_la_LIBADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la $(osc_ucx_LIBS) \
38-
$(OPAL_TOP_BUILDDIR)/opal/mca/common/ucx/lib@OPAL_LIB_PREFIX@mca_common_ucx.la
38+
$(OPAL_TOP_BUILDDIR)/opal/mca/common/ucx/lib@OPAL_LIB_NAME@mca_common_ucx.la
3939
mca_osc_ucx_la_LDFLAGS = -module -avoid-version $(osc_ucx_LDFLAGS)
4040

4141
noinst_LTLIBRARIES = $(component_noinst)

0 commit comments

Comments
 (0)