From bda8820da73193d4115016c571f7898d53047f7a Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 6 May 2021 20:20:08 +0200 Subject: [PATCH] Use percent instead of ampersand as placeholder for substitutions --- f_check | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/f_check b/f_check index 2c0d7fcb9..4825fb09a 100644 --- a/f_check +++ b/f_check @@ -314,11 +314,11 @@ if ($link ne "") { $link =~ s/\-Y\sP\,/\-Y/g; - $link =~ s/\-R\s*/\-rpath\@/g; + $link =~ s/\-R\s*/\-rpath\%/g; - $link =~ s/\-rpath\s+/\-rpath\@/g; + $link =~ s/\-rpath\s+/\-rpath\%/g; - $link =~ s/\-rpath-link\s+/\-rpath-link\@/g; + $link =~ s/\-rpath-link\s+/\-rpath-link\%/g; @flags = split(/[\s\,\n]/, $link); # remove leading and trailing quotes from each flag. @@ -344,13 +344,13 @@ if ($link ne "") { } - if ($flags =~ /^\-rpath\@/) { - $flags =~ s/\@/\,/g; + if ($flags =~ /^\-rpath\%/) { + $flags =~ s/\%/\,/g; $linker_L .= "-Wl,". $flags . " " ; } - if ($flags =~ /^\-rpath-link\@/) { - $flags =~ s/\@/\,/g; + if ($flags =~ /^\-rpath-link\%/) { + $flags =~ s/\%/\,/g; $linker_L .= "-Wl,". $flags . " " ; } if ($flags =~ /-lgomp/ && $ENV{"CC"} =~ /clang/) {