Skip to content

Commit

Permalink
Merge pull request #3040 from martin-frbg/fixfcheck
Browse files Browse the repository at this point in the history
Fix undefined CC variable in check for clang+gfortran combo
  • Loading branch information
martin-frbg authored Dec 15, 2020
2 parents 7822eff + b03dc01 commit b26e32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion f_check
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit b26e32c

Please sign in to comment.