Skip to content

Commit b409762

Browse files
committed
btl/usnic: fix usnic_btl_run_tests CPPFLAGS
do define the OMPI_LIBMPI_NAME macro via the CPPFLAGS. The issue occurs when Open MPI is configured with --enable-opal-btl-usnic-unit-tests Thanks George Marselis for reporting this issue Refs. #6441 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 73085e9 commit b409762

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

opal/mca/btl/usnic/Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
1717
# Copyright (c) 2017 Los Alamos National Security, LLC. All rights
1818
# reserved.
19+
# Copyright (c) 2019 Research Organization for Information Science
20+
# and Technology (RIST). All rights reserved.
1921
# $COPYRIGHT$
2022
#
2123
# Additional copyrights may follow
@@ -103,7 +105,8 @@ libmca_btl_usnic_la_LIBADD = $(opal_ofi_LIBS)
103105

104106
if OPAL_BTL_USNIC_BUILD_UNIT_TESTS
105107
usnic_btl_run_tests_CPPFLAGS = \
106-
-DBTL_USNIC_RUN_TESTS_SYMBOL=\"opal_btl_usnic_run_tests\"
108+
-DBTL_USNIC_RUN_TESTS_SYMBOL=\"opal_btl_usnic_run_tests\" \
109+
-DOMPI_LIBMPI_NAME=\"$(OMPI_LIBMPI_NAME)\"
107110
usnic_btl_run_tests_SOURCES = test/usnic_btl_run_tests.c
108111
usnic_btl_run_tests_LDADD = -ldl
109112
bin_PROGRAMS = usnic_btl_run_tests

0 commit comments

Comments
 (0)