Subject: | make test fails on spaces in config options ( and a patch ) |
make test was failing because my perl's Config{ldflags} was ldflags => ' ' ( for some reason, I
think this might also be the problem on the solaris bug ). adding to the config list only non
empty options removed the make test errors and warnings. except that STORE one but that
looks intentional
diff -u lib/Devel/CheckLib.pm blib/lib/Devel/CheckLib.pm
--- lib/Devel/CheckLib.pm 2012-02-26 16:13:25.000000000 -0800
+++ blib/lib/Devel/CheckLib.pm 2012-03-13 16:10:01.537795796 -0700
@@ -359,7 +359,10 @@
sub _findcc {
# Need to use $keep=1 to work with MSWin32 backslashes and quotes
my $Config_ccflags = $Config{ccflags}; # use copy so ASPerl will compile
- my @Config_ldflags = @Config{qw(ldflags perllibs)};
+ my @Config_ldflags = ();
+ for my $config_val ( @Config{qw(ldflags perllibs)} ){
+ push @Config_ldflags, $config_val if ( $config_val =~ /\S/ );
+ }
my @ccflags = grep { length } quotewords('\s+', 1, $Config_ccflags);
my @ldflags = grep { length } quotewords('\s+', 1, @Config_ldflags);
my @paths = split(/$Config{path_sep}/, $ENV{PATH});