Skip to content

Commit

Permalink
Do a Makefile escape of any single '$' in the rpath value ($ -> $$)
Browse files Browse the repository at this point in the history
Since the rpath value may also be consumed in a test in Makefile.PL where
it doesn't need to be escaped, it's inconvenient to unescape it there.
  • Loading branch information
jkahrman authored and jkahrman committed Mar 23, 2023
1 parent 03ca89a commit 91977a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ExtUtils/Liblist/Kid.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ sub _unix_os2_ext {
elsif ( $Config{'lddlflags'} =~ /-R/ ) {
$rtype = '-R';
}
if ($thislib =~ s{(?<!\$)\$(?!\$)}{\\\$\$}g) {
print "Escaping single dollar sign for Makefile\n"
if $verbose;
}
} elsif (!-d $thislib ) {
warn "$ptype$thislib ignored, directory does not exist\n"
if $verbose;
Expand Down

0 comments on commit 91977a5

Please sign in to comment.