Skip to content

Commit

Permalink
Merge pull request #7152 from yfguo/test-configure
Browse files Browse the repository at this point in the history
mpl: pass MPL's CFLAGS back to MPICH
  • Loading branch information
yfguo authored Sep 26, 2024
2 parents a20a380 + 643e606 commit 7a91c22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions confdb/aclocal_modules.m4
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ AC_DEFUN([PAC_CONFIG_MPL],[
PAC_CONFIG_MPL_EMBEDDED
PAC_APPEND_FLAG([-I${main_top_builddir}/src/mpl/include], [CPPFLAGS])
PAC_APPEND_FLAG([-I${use_top_srcdir}/src/mpl/include], [CPPFLAGS])
PAC_APPEND_FLAG([${MPL_CFLAGS}], [CFLAGS])
mplsrcdir="src/mpl"
mpllib="src/mpl/libmpl.la"
], [
Expand Down
4 changes: 4 additions & 0 deletions src/mpl/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ LT_PREREQ([2.2.6])
PAC_PUSH_FLAG([CFLAGS])
LT_INIT()
PAC_POP_FLAG([CFLAGS])
PARENT_CFLAGS=${CFLAGS}

# ----------------------------------------------------------------------------
# Set default library names if names haven't already been provided
Expand Down Expand Up @@ -1405,6 +1406,9 @@ AX_GCC_VAR_ATTRIBUTE(used)

PAC_POP_ALL_FLAGS

MPL_CFLAGS="${CFLAGS#${PARENT_CFLAGS}}"
AC_SUBST(MPL_CFLAGS)

dnl Final output
AC_CONFIG_FILES([Makefile localdefs include/mpl_timer.h])
AC_OUTPUT
1 change: 1 addition & 0 deletions src/mpl/localdefs.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@

GPU_SUPPORT="@GPU_SUPPORT@"
CPPFLAGS="@CPPFLAGS@"
MPL_CFLAGS="@MPL_CFLAGS@"
WRAPPER_LIBS="$WRAPPER_LIBS @LDFLAGS@ @LIBS@"
COMPILER_TLS="@COMPILER_TLS@"

0 comments on commit 7a91c22

Please sign in to comment.