Skip to content

Commit aeabe0a

Browse files
authored
Fix regex to parse -R options with and without whitespace
Both forms are seen on NetBSD (#2288)
1 parent 69b16a8 commit aeabe0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

f_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $nofortran = 0;
1919

2020
$compiler = join(" ", @ARGV);
2121
$compiler_bin = shift(@ARGV);
22-
22+
2323
# f77 is too ambiguous
2424
$compiler = "" if $compiler eq "f77";
2525

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

284284
$link =~ s/\-Y\sP\,/\-Y/g;
285285

286-
$link =~ s/\-R+/\-rpath\@/g;
286+
$link =~ s/\-R\s*/\-rpath\@/g;
287287

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

0 commit comments

Comments
 (0)