Merge pull request #4125 from ggouaillardet/topic/flang
configury: patch configure in order to correctly support flang compilers
Этот коммит содержится в:
Коммит
cc41c48026
22
autogen.pl
22
autogen.pl
@ -975,6 +975,28 @@ sub patch_autotools_output {
|
|||||||
# Below is essentially an upstream patch for Libtool which we want
|
# Below is essentially an upstream patch for Libtool which we want
|
||||||
# made available to Open MPI users running older versions of Libtool
|
# made available to Open MPI users running older versions of Libtool
|
||||||
|
|
||||||
|
foreach my $tag (("", "_FC")) {
|
||||||
|
|
||||||
|
# We have to change the search pattern and substitution on each
|
||||||
|
# iteration to take into account the tag changing
|
||||||
|
my $search_string = '# icc used to be incompatible with GCC.\n\s+' .
|
||||||
|
'# ICC 10 doesn\047t accept -KPIC any more.\n.*\n\s+' .
|
||||||
|
"lt_prog_compiler_wl${tag}=";
|
||||||
|
my $replace_string = "# Flang compiler
|
||||||
|
*flang)
|
||||||
|
lt_prog_compiler_wl${tag}='-Wl,'
|
||||||
|
lt_prog_compiler_pic${tag}='-fPIC -DPIC'
|
||||||
|
lt_prog_compiler_static${tag}='-static'
|
||||||
|
;;
|
||||||
|
# icc used to be incompatible with GCC.
|
||||||
|
# ICC 10 doesn't accept -KPIC any more.
|
||||||
|
icc* | ifort*)
|
||||||
|
lt_prog_compiler_wl${tag}=";
|
||||||
|
|
||||||
|
push(@verbose_out, $indent_str . "Patching configure for flang Fortran ($tag)\n");
|
||||||
|
$c =~ s/$search_string/$replace_string/;
|
||||||
|
}
|
||||||
|
|
||||||
foreach my $tag (("", "_FC")) {
|
foreach my $tag (("", "_FC")) {
|
||||||
|
|
||||||
# We have to change the search pattern and substitution on each
|
# We have to change the search pattern and substitution on each
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user