File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1065,6 +1065,30 @@ sub patch_autotools_output {
10651065 *)' ;
10661066 $c =~ s / $search_string/ $replace_string / g ;
10671067
1068+ # Fix ifort support on OSX
1069+ # see https://ntq1982.github.io/files/20200621.html
1070+ $search_string = ' case \$cc_basename in
1071+ nagfor\*\)
1072+ # NAG Fortran compiler
1073+ lt_prog_compiler_wl_FC=\' -Wl,-Wl,,\'
1074+ lt_prog_compiler_pic_FC=\' -PIC\'
1075+ lt_prog_compiler_static_FC=\' -Bstatic\'
1076+ ;;' ;
1077+ $replace_string = " case \$ cc_basename in
1078+ icc* | ifort*)
1079+ #Intel Fortran compiler
1080+ lt_prog_compiler_wl_FC='-Wl,'
1081+ lt_prog_compiler_pic_FC='-fno-common -PIC'
1082+ lt_prog_compiler_static_FC=''
1083+ ;;
1084+ nagfor*)
1085+ # NAG Fortran compiler
1086+ lt_prog_compiler_wl_FC='-Wl,-Wl,,'
1087+ lt_prog_compiler_pic_FC='-PIC'
1088+ lt_prog_compiler_static_FC='-Bstatic'
1089+ ;;" ;
1090+ $c =~ s / $search_string/ $replace_string / g ;
1091+
10681092 # Only write out verbose statements and a new configure if the
10691093 # configure content actually changed
10701094 return
You can’t perform that action at this time.
0 commit comments