remove libomp from link list only for pgfortran
at least the AMD (aocc) flavor of flang wants to link to a (real or dummy) libomp by default
@@ -334,7 +334,7 @@ if ($link ne "") {
&& ($flags !~ /kernel32/)
&& ($flags !~ /advapi32/)
&& ($flags !~ /shell32/)
- && ($flags !~ /omp/)
+ && ($vendor =~ /PGI/ && $flags !~ /omp/)
&& ($flags !~ /[0-9]+/)
&& ($flags !~ /^\-l$/)
) {
