Avoid linking both GNU libgomp and LLVM libomp in clang/gfortran builds

This commit is contained in:
Martin Kroeker 2020-12-03 21:25:57 +01:00 committed by GitHub
parent 52ed2741c5
commit da0c94c76f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -330,6 +330,9 @@ if ($link ne "") {
$flags =~ s/\@/\,/g; $flags =~ s/\@/\,/g;
$linker_L .= "-Wl,". $flags . " " ; $linker_L .= "-Wl,". $flags . " " ;
} }
if ($flags =~ /-lgomp/ && $CC == /clang/) {
$flags = "-lomp";
}
if ( if (
($flags =~ /^\-l/) ($flags =~ /^\-l/)