Skip to content

Commit

Permalink
btl/usnic: fix usnic_btl_run_tests CPPFLAGS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ggouaillardet committed Mar 5, 2019
1 parent 73085e9 commit b409762
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opal/mca/btl/usnic/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
# Copyright (c) 2017 Los Alamos National Security, LLC. All rights
# reserved.
# Copyright (c) 2019 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand Down Expand Up @@ -103,7 +105,8 @@ libmca_btl_usnic_la_LIBADD = $(opal_ofi_LIBS)

if OPAL_BTL_USNIC_BUILD_UNIT_TESTS
usnic_btl_run_tests_CPPFLAGS = \
-DBTL_USNIC_RUN_TESTS_SYMBOL=\"opal_btl_usnic_run_tests\"
-DBTL_USNIC_RUN_TESTS_SYMBOL=\"opal_btl_usnic_run_tests\" \
-DOMPI_LIBMPI_NAME=\"$(OMPI_LIBMPI_NAME)\"
usnic_btl_run_tests_SOURCES = test/usnic_btl_run_tests.c
usnic_btl_run_tests_LDADD = -ldl
bin_PROGRAMS = usnic_btl_run_tests
Expand Down

0 comments on commit b409762

Please sign in to comment.