From: Nicholas Clark Date: Tue, 8 Sep 2009 21:38:46 +0000 (+0100) Subject: win32/FindExt.pm thought that ext/List-Util was a nonxs extension. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=753cab9b78a668a1a4b06f330de228523607d910;p=p5sagit%2Fp5-mst-13.2.git win32/FindExt.pm thought that ext/List-Util was a nonxs extension. (It needed a change analogous to 75cdbdc152433e4b - prior to that, Configure was looking for ext/$dir/$leaf.xs, which was no longer a valid test after the upgrade to Scalar-List-Utils 1.21 (2ff286160a117d4e), which renamed Utils.xs to ListUtil.xs) win32/FindExt.pm still considers IO-Compress as a nonxs extension. Configure was special-cased to treat this as dynamic (ie architecture specific) in 4cc80fc4cbbd82e2. --- diff --git a/win32/FindExt.pm b/win32/FindExt.pm index da02761..7c99814 100644 --- a/win32/FindExt.pm +++ b/win32/FindExt.pm @@ -78,7 +78,8 @@ sub find_ext $this_ext =~ s!-!/!g; $leaf =~ s/.*-//; - if (-f "$ext_dir$item/$leaf.xs" || -f "$ext_dir$item/$leaf.c" ) { + my @files = glob "$ext_dir$item/*.{xs,c}"; + if (@files) { $ext{$this_ext} = $static{$this_ext} ? 'static' : 'dynamic'; } else { $ext{$this_ext} = 'nonxs';