Skip to content

Commit 1ce5393

Browse files
committed
configury: add the -mismatch flag to NAG compiler
NAG compiler is too picky about naming convention and cannot build OpenMPI unless the -mismatch flag is used
1 parent 20bfc6b commit 1ce5393

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

config/ompi_setup_fc.m4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dnl Copyright (c) 2007 Los Alamos National Security, LLC. All rights
1414
dnl reserved.
1515
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
1616
dnl Copyright (c) 2009-2014 Cisco Systems, Inc. All rights reserved.
17-
dnl Copyright (c) 2015 Research Organization for Information Science
17+
dnl Copyright (c) 2015-2016 Research Organization for Information Science
1818
dnl and Technology (RIST). All rights reserved.
1919
dnl $COPYRIGHT$
2020
dnl
@@ -114,13 +114,19 @@ AC_DEFUN([OMPI_SETUP_FC],[
114114
# "ignore TKR" comment pragmas that it doesn't understand, and
115115
# will warn about them. From Tony Goetz at Absoft, we can use the
116116
# -Z790 flag to quell these warnings.
117+
# The NAG compiler is too picky about naming conventions, so use the
118+
# -mismatch flag to keep it happy
117119
AC_MSG_CHECKING([for $FC warnings flags])
118120
fc_version=`$FC --version 2>&1`
119121
case "$fc_version" in
120122
*Absoft*)
121123
AC_MSG_RESULT([-Z790])
122124
FCFLAGS="$FCFLAGS -Z790"
123125
;;
126+
*NAG*)
127+
AC_MSG_RESULT([-mismatch])
128+
FCFLAGS="$FCFLAGS -mismatch"
129+
;;
124130
*)
125131
AC_MSG_RESULT([none])
126132
;;

0 commit comments

Comments
 (0)