Merge pull request #3040 from martin-frbg/fixfcheck

Fix undefined CC variable in check for clang+gfortran combo
This commit is contained in:
Martin Kroeker 2020-12-16 00:05:04 +01:00 committed by GitHub
commit b26e32c3af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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