Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions lib/ExtUtils/Liblist/Kid.pm
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ sub _unix_os2_ext {
# Handle possible linker path arguments.
if ( $thislib =~ s/^(-[LR]|-Wl,-R|-Wl,-rpath,)// ) { # save path flag type
my ( $ptype ) = $1;
unless ( -d $thislib ) {
warn "$ptype$thislib ignored, directory does not exist\n"
if $verbose;
next;
}
my ( $rtype ) = $ptype;
if ( ( $ptype eq '-R' ) or ( $ptype =~ m!^-Wl,-[Rr]! ) ) {
if ( $Config{'lddlflags'} =~ /-Wl,-[Rr]/ ) {
Expand All @@ -89,8 +84,16 @@ 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;
next;
}
unless ( File::Spec->file_name_is_absolute( $thislib ) ) {
if (-d $thislib && !File::Spec->file_name_is_absolute( $thislib ) ) {
warn "Warning: $ptype$thislib changed to $ptype$pwd/$thislib\n";
$thislib = $self->catdir( $pwd, $thislib );
}
Expand Down