Skip to content

Commit 91977a5

Browse files
jkahrmanjkahrman
authored andcommitted
Do a Makefile escape of any single '$' in the rpath value ($ -> $$)
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.
1 parent 03ca89a commit 91977a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ExtUtils/Liblist/Kid.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ sub _unix_os2_ext {
8484
elsif ( $Config{'lddlflags'} =~ /-R/ ) {
8585
$rtype = '-R';
8686
}
87+
if ($thislib =~ s{(?<!\$)\$(?!\$)}{\\\$\$}g) {
88+
print "Escaping single dollar sign for Makefile\n"
89+
if $verbose;
90+
}
8791
} elsif (!-d $thislib ) {
8892
warn "$ptype$thislib ignored, directory does not exist\n"
8993
if $verbose;

0 commit comments

Comments
 (0)