diff options
author | Craig A. Berry <craigberry@mac.com> | 2014-09-21 17:36:27 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2014-09-21 20:35:18 -0500 |
commit | 9fa5aa9143471cda101c2ac9e87f7bf90ccd0b36 (patch) | |
tree | ef6116a0e4bf897548b36f9e7c07025e0864d5ce /make_ext.pl | |
parent | e075ae47340a787b6715a9f44a3b52f32267fc45 (diff) | |
download | perl-9fa5aa9143471cda101c2ac9e87f7bf90ccd0b36.tar.gz |
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/.
Diffstat (limited to 'make_ext.pl')
-rw-r--r-- | make_ext.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl index f19bf181f0..b855c6326a 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -719,7 +719,7 @@ sub just_pm_to_blib { # (which it has to deal with, as cpan/foo/bar creates # lib/auto/foo/bar, but the EU::MM rule will only # rmdir lib/auto/foo/bar, leaving lib/auto/foo - _unlink("../../$_") + _unlink($_) foreach sort values %pm; } } |