Skip to content

Commit ca03269

Browse files
ggouaillardetjsquyres
authored andcommitted
fortran: ensure not to use [AM_]CPPFLAGS
Add missing bits from open-mpi/ompi@ab398f4 Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 1f7bf0d commit ca03269

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ompi/mpi/fortran/use-mpi-f08/profile/Makefile.am

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828

2929
include $(top_srcdir)/Makefile.ompi-rules
3030

31+
# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
32+
# AM_CPPFLAGS. This can cause weirdness (e.g.,
33+
# https://github.com/open-mpi/ompi/issues/7253). Let's just zero
34+
# those out and rely on AM_FCFLAGS.
35+
CPPFLAGS =
36+
AM_CPPFLAGS =
37+
3138
# This Makefile is only relevant if we're building the "use mpi_f08"
3239
# MPI bindings.
3340
if OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS

0 commit comments

Comments
 (0)