Skip to content

Commit 9fa5aa9

Browse files
committed
Fix distclean for "pm_to_blib directly" extensions.
The values of the %pm hash already have ../../ prepended, so we were trying to remove, for example, ../../../../lib/Exporter.pm instead of ../../lib/Exporter.pm. This fixes [perl #122820] wherein it was reported that a distclean make left some build products under lib/.
1 parent e075ae4 commit 9fa5aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make_ext.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ sub just_pm_to_blib {
719719
# (which it has to deal with, as cpan/foo/bar creates
720720
# lib/auto/foo/bar, but the EU::MM rule will only
721721
# rmdir lib/auto/foo/bar, leaving lib/auto/foo
722-
_unlink("../../$_")
722+
_unlink($_)
723723
foreach sort values %pm;
724724
}
725725
}

0 commit comments

Comments
 (0)