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