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 {
1065
1065
*)' ;
1066
1066
$c =~ s / $search_string/ $replace_string / g ;
1067
1067
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
+
1068
1092
# Only write out verbose statements and a new configure if the
1069
1093
# configure content actually changed
1070
1094
return
You can’t perform that action at this time.
0 commit comments