Skip to content

Instantly share code, notes, and snippets.

@meow464
Created February 8, 2022 21:33
Show Gist options
  • Save meow464/5daef9855fa5b593f086d12946711387 to your computer and use it in GitHub Desktop.
Save meow464/5daef9855fa5b593f086d12946711387 to your computer and use it in GitHub Desktop.
diff --git a/f_check b/f_check
index 4825fb09..4e00c189 100644
--- a/f_check
+++ b/f_check
@@ -280,7 +280,7 @@ if (!$?) {
}
if ($binary == 64) {
- $link = `$compiler $openmp -m64 -v ftest2.f 2>&1 && rm -f a.out a.exe`;
+ # $link = `$compiler $openmp -m64 -v ftest2.f 2>&1 && rm -f a.out a.exe`;
if ($?) {
$link = `$compiler $openmp -q64 -v ftest2.f 2>&1 && rm -f a.out a.exe`;
}
@@ -392,7 +392,7 @@ if ($link ne "") {
}
if ($vendor eq "FLANG"){
- $linker_a .= "-lflang"
+ $linker_a .= "-no-flang-libs -lflang -lflangrti -lpgmath -lompstub -lm -lpthread"
}
open(MAKEFILE, ">> $makefile") || die "Can't append $makefile";
@@ -411,6 +411,7 @@ print MAKEFILE "NEED2UNDERSCORES=1\n" if $need2bu ne "";
if (($linker_l ne "") || ($linker_a ne "")) {
print MAKEFILE "FEXTRALIB=$linker_L $linker_l $linker_a\n";
+ # $linker_l
}
close(MAKEFILE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment