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

View File

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