From aeabe0a83fffce9ab43ab8d10795e1696574887c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 25 Oct 2019 22:52:30 +0200 Subject: [PATCH] Fix regex to parse -R options with and without whitespace Both forms are seen on NetBSD (#2288) --- f_check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/f_check b/f_check index 0afbab23a..993ad9a35 100644 --- a/f_check +++ b/f_check @@ -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;