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