Skip to content

Commit a8fc30f

Browse files
ThemosTsikasjsquyres
authored andcommitted
configury: Make more robust in finding NAG Fortran Compiler
The NAG Fortran check only matched "nagfor" exactly, and failed if a path to nagfor was provided. Also change "-pthread" into "-Wl,-pthread". Signed-off-by: Themos Tsikas <[email protected]> Signed-off-by: Jeff Squyres <[email protected]>
1 parent f15d620 commit a8fc30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/ltmain_nag_pthread.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
if test -n "$inherited_linker_flags"; then
99
- tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
1010
+ case "$CC" in
11-
+ nagfor*)
11+
+ *nagfor*)
1212
+ tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g' | $SED 's/-pthread/-Wl,-pthread/g'`;;
1313
+ *)
1414
+ tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`;;

0 commit comments

Comments
 (0)