From: Reini Urban Date: Tue, 14 Aug 2007 08:21:11 +0000 (+0200) Subject: Strip whitespace from the beginning of static_ext: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d0cbb09d39b0ffad30b02f952468fcdf5b2b2891;p=p5sagit%2Fp5-mst-13.2.git Strip whitespace from the beginning of static_ext: Subject: [PATCH] CYG02lib-ExtUtils-Embed.patch Message-Id: <46C149D7.5060307@x-ray.at> p4raw-id: //depot/perl@31707 --- diff --git a/lib/ExtUtils/Embed.pm b/lib/ExtUtils/Embed.pm index 78451c7..026f7ee 100644 --- a/lib/ExtUtils/Embed.pm +++ b/lib/ExtUtils/Embed.pm @@ -133,7 +133,9 @@ sub xsi_body { sub static_ext { unless (scalar @Extensions) { - @Extensions = sort split /\s+/, $Config{static_ext}; + my $static_ext = $Config{static_ext}; + $static_ext =~ s/^\s+//; + @Extensions = sort split /\s+/, $static_ext; unshift @Extensions, qw(DynaLoader); } @Extensions;