Fix bug 650: use general macros $(LIBLAM_LA) and $(LIBMPI_LA) to link
to relative libraries -- need these to be variables because configure may decide to compile them both as libmpi (and therefore there is no libmpi). Correct usage is to use *ONE* of these two macros when adding it to LIBADD lines in Makefile.am's -- if you use $(LIBMPI_LA), it will automatically include liblam if it needs it. This commit was SVN r400.
Этот коммит содержится в:
родитель
ba7655775d
Коммит
a422d98532
@ -165,10 +165,16 @@ AC_ARG_ENABLE(single-lib,
|
||||
if test "$enable_single_lib" != "yes"; then
|
||||
AC_MSG_RESULT([no])
|
||||
WANT_SINGLE_MPI_LIBRARY=0
|
||||
LIBLAM_LA='$(top_builddir)/src/lam/liblam.la'
|
||||
LIBMPI_LA='$(top_builddir)/src/mpi/libmpi.la'" $LIBLAM_LA"
|
||||
else
|
||||
AC_MSG_RESULT([yes])
|
||||
WANT_SINGLE_MPI_LIBRARY=1
|
||||
LIBLAM_LA='$(top_builddir)/src/libmpi.la'
|
||||
LIBMPI_LA="$LIBLAM_LA"
|
||||
fi
|
||||
AC_SUBST(LIBLAM_LA)
|
||||
AC_SUBST(LIBMPI_LA)
|
||||
AM_CONDITIONAL(WANT_SINGLE_MPI_LIBRARY, test "$WANT_SINGLE_MPI_LIBRARY" = 1)
|
||||
|
||||
#
|
||||
|
@ -29,7 +29,7 @@ mcamodule_LTLIBRARIES = $(module_install)
|
||||
mca_oob_cofs_la_SOURCES =
|
||||
mca_oob_cofs_la_LIBADD = \
|
||||
src/libmca_oob_cofs.la \
|
||||
$(top_lam_builddir)/src/lam/liblam.la
|
||||
$(LIBLAM_LA)
|
||||
mca_oob_cofs_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
noinst_LTLIBRARIES = $(module_noinst)
|
||||
|
@ -29,7 +29,7 @@ mcamodule_LTLIBRARIES = $(module_install)
|
||||
mca_pcm_cofs_la_SOURCES =
|
||||
mca_pcm_cofs_la_LIBADD = \
|
||||
src/libmca_pcm_cofs.la \
|
||||
$(top_lam_builddir)/src/lam/liblam.la
|
||||
$(LIBLAM_LA)
|
||||
mca_pcm_cofs_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
noinst_LTLIBRARIES = $(module_noinst)
|
||||
|
@ -29,7 +29,7 @@ mcamodule_LTLIBRARIES = $(module_install)
|
||||
mca_registry_cofs_la_SOURCES =
|
||||
mca_registry_cofs_la_LIBADD = \
|
||||
src/libmca_registry_cofs.la \
|
||||
$(top_lam_builddir)/src/lam/liblam.la
|
||||
$(LIBLAM_LA)
|
||||
mca_registry_cofs_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
noinst_LTLIBRARIES = $(module_noinst)
|
||||
|
@ -29,8 +29,7 @@ mcamodule_LTLIBRARIES = $(module_install)
|
||||
mca_coll_basic_la_SOURCES =
|
||||
mca_coll_basic_la_LIBADD = \
|
||||
src/libmca_coll_basic.la \
|
||||
$(top_lam_builddir)/src/mpi/libmpi.la \
|
||||
$(top_lam_builddir)/src/lam/liblam.la
|
||||
$(LIBMPI_LA)
|
||||
mca_coll_basic_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
noinst_LTLIBRARIES = $(module_noinst)
|
||||
|
@ -28,7 +28,7 @@ mcamodule_LTLIBRARIES = $(module_install)
|
||||
mca_pml_teg_la_SOURCES =
|
||||
mca_pml_teg_la_LIBADD = \
|
||||
src/libmca_pml_teg.la \
|
||||
$(top_lam_builddir)/src/lam/liblam.la
|
||||
$(LIBLAM_LA)
|
||||
mca_pml_teg_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
noinst_LTLIBRARIES = $(module_noinst)
|
||||
|
@ -28,7 +28,7 @@ mcamodule_LTLIBRARIES = $(module_install)
|
||||
mca_ptl_tcp_la_SOURCES =
|
||||
mca_ptl_tcp_la_LIBADD = \
|
||||
src/libmca_ptl_tcp.la \
|
||||
$(top_lam_builddir)/src/lam/liblam.la
|
||||
$(LIBLAM_LA)
|
||||
mca_ptl_tcp_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
noinst_LTLIBRARIES = $(module_noinst)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user