Fix regex to parse -R options with and without whitespace

Both forms are seen on NetBSD (#2288)
This commit is contained in:
Martin Kroeker 2019-10-25 22:52:30 +02:00 committed by GitHub
parent 69b16a894d
commit aeabe0a83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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;