Codebase list libextutils-depends-perl / 4e4c8a9
quote directories with spaces Ed J 5 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
218218 {
219219 instpath => $instpath,
220220 typemaps => \@typemaps,
221 inc => "-I$instpath $inc",
221 inc => "-I". _quote_if_space($instpath) ." $inc",
222222 libs => $libs,
223223 deps => \@deps,
224224 }
225225 }
226
227 sub _quote_if_space { $_[0] =~ / / ? qq{"$_[0]"} : $_[0] }
226228
227229 sub load_deps {
228230 my $self = shift;
361363 }, map { -d $_ ? ($_) : () } @INC); # only extant dirs
362364
363365 if ($matching_file && -f $matching_file) {
364 push @found_libs, ('-L' . $matching_dir, '-l' . $stem);
366 push @found_libs,
367 '-L' . _quote_if_space($matching_dir),
368 '-l' . $stem;
365369 # Android's linker ignores the RTLD_GLOBAL flag
366370 # and loads everything as if under RTLD_LOCAL.
367371 # What this means in practice is that modules need