Skip to content

Commit bda8820

Browse files
authored
Use percent instead of ampersand as placeholder for substitutions
1 parent f497bb9 commit bda8820

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

f_check

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@ if ($link ne "") {
314314

315315
$link =~ s/\-Y\sP\,/\-Y/g;
316316

317-
$link =~ s/\-R\s*/\-rpath\@/g;
317+
$link =~ s/\-R\s*/\-rpath\%/g;
318318

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

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

323323
@flags = split(/[\s\,\n]/, $link);
324324
# remove leading and trailing quotes from each flag.
@@ -344,13 +344,13 @@ if ($link ne "") {
344344
}
345345

346346

347-
if ($flags =~ /^\-rpath\@/) {
348-
$flags =~ s/\@/\,/g;
347+
if ($flags =~ /^\-rpath\%/) {
348+
$flags =~ s/\%/\,/g;
349349
$linker_L .= "-Wl,". $flags . " " ;
350350
}
351351

352-
if ($flags =~ /^\-rpath-link\@/) {
353-
$flags =~ s/\@/\,/g;
352+
if ($flags =~ /^\-rpath-link\%/) {
353+
$flags =~ s/\%/\,/g;
354354
$linker_L .= "-Wl,". $flags . " " ;
355355
}
356356
if ($flags =~ /-lgomp/ && $ENV{"CC"} =~ /clang/) {

0 commit comments

Comments
 (0)