fix undefined CC variable
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Fri, 26 Feb 2021 08:09:43 +0000 (09:09 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Feb 2021 08:09:43 +0000 (09:09 +0100)
f_check

diff --git a/f_check b/f_check
index d044f254799a9c96215da4ec12765d7617e64474..fe947bf66b1fdb638f1acce2c3ee673d8682acff 100644 (file)
--- a/f_check
+++ b/f_check
@@ -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";
        }