(Another work-around for smokers that are not clearing directories. Without this
vestigial directories in ext/ are treated as nonxs extensions, and as ext/ is
scanned after cpan/, that classification overrides the truth.)
$this_ext =~ s!-!/!g;
$leaf =~ s/.*-//;
+ # Temporary hack to cope with smokers that are not clearing directories:
+ next if $ext{$this_ext};
+
if (has_xs_or_c("$ext_dir$item")) {
$ext{$this_ext} = $static{$this_ext} ? 'static' : 'dynamic';
} else {