Browse Source

Fix regex to parse -R options with and without whitespace

Both forms are seen on NetBSD (#2288)
tags/v0.3.8^2
Martin Kroeker GitHub 6 years ago
parent
commit
aeabe0a83f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      f_check

+ 2
- 2
f_check View File

@@ -19,7 +19,7 @@ $nofortran = 0;

$compiler = join(" ", @ARGV);
$compiler_bin = shift(@ARGV);
# f77 is too ambiguous
$compiler = "" if $compiler eq "f77";

@@ -283,7 +283,7 @@ if ($link ne "") {

$link =~ s/\-Y\sP\,/\-Y/g;
$link =~ s/\-R+/\-rpath\@/g;
$link =~ s/\-R\s*/\-rpath\@/g;

$link =~ s/\-rpath\s+/\-rpath\@/g;



Loading…
Cancel
Save