Convert --exclude-libs argument to linker flag
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Tue, 22 Nov 2016 08:17:03 +0000 (09:17 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Nov 2016 08:17:03 +0000 (09:17 +0100)
Fixes build with TDM-GCC

f_check

diff --git a/f_check b/f_check
index 2f01f1c..ba3f470 100644 (file)
--- a/f_check
+++ b/f_check
@@ -283,6 +283,12 @@ if ($link ne "") {
            $linker_L .= "-Wl,". $flags . " ";
         }
 
+       if ($flags =~ /^\--exclude-libs/) {
+           $linker_L .= "-Wl,". $flags . " ";
+           $flags="";
+       }
+
+
        if ($flags =~ /^\-rpath\@/) {
            $flags =~ s/\@/\,/g;
            if ($vendor eq "PGI") {