Skip to content

Commit b191681

Browse files
authored
Merge pull request #9911 from jjhursey/v5-fix-iquote
Fix Fortran preprocessor issue with CPPFLAGS
2 parents 9314a42 + bfdebed commit b191681

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-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

ompi/mpiext/example/use-mpi-f08/Makefile.am

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@
22
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
33
# Copyright (c) 2017 Research Organization for Information Science
44
# and Technology (RIST). All rights reserved.
5+
# Copyright (c) 2022 IBM Corporation. All rights reserved.
56
# $COPYRIGHT$
67
#
78
# Additional copyrights may follow
89
#
910
# $HEADER$
1011
#
1112

13+
# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
14+
# AM_CPPFLAGS. This can cause weirdness (e.g.,
15+
# https://github.com/open-mpi/ompi/issues/7253 and
16+
# https://github.com/open-mpi/ompi/issues/9716). Let's just zero
17+
# those out and rely on AM_FCFLAGS.
18+
CPPFLAGS =
19+
AM_CPPFLAGS =
20+
1221
# This file builds the use_mpi_f08-based bindings for MPI extensions. It
1322
# is optional in MPI extensions.
1423

ompi/mpiext/ftmpi/use-mpi-f08/Makefile.am

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@
66
# Copyright (c) 2018 The University of Tennessee and The University
77
# of Tennessee Research Foundation. All rights
88
# reserved.
9+
# Copyright (c) 2022 IBM Corporation. All rights reserved.
910
# $COPYRIGHT$
1011
#
1112
# Additional copyrights may follow
1213
#
1314
# $HEADER$
1415
#
1516

17+
# Note that Automake's Fortran-buidling rules uses CPPFLAGS and
18+
# AM_CPPFLAGS. This can cause weirdness (e.g.,
19+
# https://github.com/open-mpi/ompi/issues/7253 and
20+
# https://github.com/open-mpi/ompi/issues/9716). Let's just zero
21+
# those out and rely on AM_FCFLAGS.
22+
CPPFLAGS =
23+
AM_CPPFLAGS =
24+
1625
# This file builds the use_mpi_f08-based bindings for MPI extensions. It
1726
# is optional in MPI extensions.
1827

0 commit comments

Comments
 (0)