X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FFatNode.pm;h=594f281a7178c9e6ce541e6d49e1aee36dfb5361;hp=d93f54c7a2d089e763f45b3ffb8546ddf6a112bc;hb=668343cde7e6339cca56c66a41defdd28327f224;hpb=9a46f6c5479427e967cea4f4ea64b0be7decbd7c diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index d93f54c..594f281 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -16,9 +16,12 @@ sub stripspace { my %maybe_libs = map +($_ => 1), grep defined, (values %Config, '.'); -my @extra_libs = grep -e not(ref($_) or $maybe_libs{$_}), @INC; - -my $extra_libs = join '', map " -I$_\n", @extra_libs; +my @extra_libs = grep not(ref($_) or $maybe_libs{$_}), @INC; +my $extra_libs = join '', map { + my $lib = $_; + $lib =~ s{'}{'\\''}g; + " -I'$lib'\n"; +} @extra_libs; my $command = qq( $^X