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