Strip whitespace from the beginning of static_ext:
Reini Urban [Tue, 14 Aug 2007 08:21:11 +0000 (10:21 +0200)]
Subject: [PATCH] CYG02lib-ExtUtils-Embed.patch
Message-Id: <46C149D7.5060307@x-ray.at>

p4raw-id: //depot/perl@31707

lib/ExtUtils/Embed.pm

index 78451c7..026f7ee 100644 (file)
@@ -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;