Browse Source

Merge pull request #1017 from martin-frbg/develop

Make c_check, f_check convert any --exclude-libs arguments to linker flags
tags/v0.2.20^2
Zhang Xianyi GitHub 9 years ago
parent
commit
db3efb2e14
2 changed files with 11 additions and 0 deletions
  1. +5
    -0
      c_check
  2. +6
    -0
      f_check

+ 5
- 0
c_check View File

@@ -234,6 +234,11 @@ $linker_a = "";
$linker_L .= "-Wl,". $flags . " "
}

if ($flags =~ /^\--exclude-libs/) {
$linker_L .= "-Wl,". $flags . " ";
$flags="";
}

if (
($flags =~ /^\-l/)
&& ($flags !~ /gfortranbegin/)


+ 6
- 0
f_check View File

@@ -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") {


Loading…
Cancel
Save