Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions orte/mca/rml/ofi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ endif
mcacomponentdir = $(ortelibdir)
mcacomponent_LTLIBRARIES = $(component_install)
mca_rml_ofi_la_SOURCES = $(sources)
mca_rml_ofi_la_CPPFLAGS = $(orte_rml_ofi_CPPFLAGS)
mca_rml_ofi_la_LDFLAGS = \
$(orte_rml_ofi_LDFLAGS) \
-module -avoid-version
Expand All @@ -47,6 +48,7 @@ mca_rml_ofi_la_LIBADD = $(orte_rml_ofi_LIBS) \

noinst_LTLIBRARIES = $(component_noinst)
libmca_rml_ofi_la_SOURCES = $(sources)
libmca_rml_ofi_la_CPPFLAGS = $(orte_rml_ofi_CPPFLAGS)
libmca_rml_ofi_la_LDFLAGS = \
$(orte_rml_ofi_LDFLAGS) \
-module -avoid-version
Expand Down
14 changes: 12 additions & 2 deletions orte/mca/rml/ofi/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# ----------------------------------------
# Only require the tag if we're actually going to be built

# MCA_mtl_ofi_CONFIG([action-if-can-compile],
# MCA_orte_rml_ofi_CONFIG([action-if-can-compile],
# [action-if-cant-compile])
# ------------------------------------------------
AC_DEFUN([MCA_orte_rml_ofi_CONFIG],[
Expand All @@ -23,7 +23,17 @@ AC_DEFUN([MCA_orte_rml_ofi_CONFIG],[
# ensure we already ran the common libfabric config
AC_REQUIRE([MCA_opal_common_libfabric_CONFIG])

AS_IF([test "$opal_common_libfabric_happy" = "yes"],
OPAL_CHECK_LIBFABRIC([orte_rml_ofi], [orte_rml_ofi_good=1], [orte_rml_ofi_good=0])

# if check worked, set wrapper flags if so.
# Evaluate succeed / fail
AS_IF([test "$orte_rml_ofi_good" = "1"],
[$1],
[$2])

# set build flags to use in makefile
AC_SUBST([orte_rml_ofi_CPPFLAGS])
AC_SUBST([orte_rml_ofi_LDFLAGS])
AC_SUBST([orte_rml_ofi_LIBS])

])dnl