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