aaf018
From 266189935aef4fce825d0db831b4b53accc62c32 Mon Sep 17 00:00:00 2001
aaf018
From: Jeff Squyres <jsquyres@cisco.com>
aaf018
Date: Tue, 22 Jun 2021 22:28:37 -0400
aaf018
Subject: [PATCH] fbtl-posix: link to common_ompio
aaf018
aaf018
The posix fbtl calls mca_common_ompio_progress(), which resides in
aaf018
common/ompio (i.e., libmca_common_ompio.la).  So add that into
aaf018
mca_fbtl_posix_la_LIBADD (like we do in a few other OMPIO-based
aaf018
components).  Failure to do this *can* lead to the posix fbtl
aaf018
component failing to load (depending on whether other OMPIO-based
aaf018
components that pull in libmca_common_ompio were loaded first).
aaf018
aaf018
Thanks to Honggang Li for raising the issue.
aaf018
aaf018
Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
aaf018
---
aaf018
 ompi/mca/fbtl/posix/Makefile.am | 3 ++-
aaf018
 1 file changed, 2 insertions(+), 1 deletion(-)
aaf018
aaf018
diff --git a/ompi/mca/fbtl/posix/Makefile.am b/ompi/mca/fbtl/posix/Makefile.am
aaf018
index a7b0624d3ec..1ce19cb09b7 100644
aaf018
--- a/ompi/mca/fbtl/posix/Makefile.am
aaf018
+++ b/ompi/mca/fbtl/posix/Makefile.am
aaf018
@@ -34,7 +34,8 @@ mcacomponentdir = $(ompilibdir)
aaf018
 mcacomponent_LTLIBRARIES = $(component_install)
aaf018
 mca_fbtl_posix_la_SOURCES = $(sources)
aaf018
 mca_fbtl_posix_la_LDFLAGS = -module -avoid-version
aaf018
-mca_fbtl_posix_la_LIBADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la
aaf018
+mca_fbtl_posix_la_LIBADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \
aaf018
+    $(OMPI_TOP_BUILDDIR)/ompi/mca/common/ompio/libmca_common_ompio.la
aaf018
 
aaf018
 noinst_LTLIBRARIES = $(component_noinst)
aaf018
 libmca_fbtl_posix_la_SOURCES = $(sources)