Subject: | [PATCH] Configure and also build fail in "place with space" |
Apologies for not using correct patch format but have forgotten how to operate svn.
The configure stage can be fixed by changing the line in check_openssl_version inside inc/Module/Install/PRIVATE/Net/SSLeay.pm to read:
open($pipe, qq{"$exec" version |})
The build stage can be fixed by changing this:
$self->makemaker_args(
CCCDLFLAGS => $opts->{cccdlflags},
OPTIMIZE => $opts->{optimize},
INC => join(' ', map {"-I$_"} @{$opts->{inc_paths}}),
LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
);
to this:
$self->makemaker_args(
CCCDLFLAGS => $opts->{cccdlflags},
OPTIMIZE => $opts->{optimize},
INC => join(' ', map qq{"-I$_"}, @{$opts->{inc_paths}}),
LIBS => join(' ', (map qq{"-L$_"}, @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
);
and this:
# From HMBRAND to handle multple version of OPENSSL installed
if (my $lp = join " " => map { "-L$_" } @{$opts->{lib_paths} || []})
to this:
# From HMBRAND to handle multple version of OPENSSL installed
if (my $lp = join " " => map qq{"-L$_"}, @{$opts->{lib_paths} || []})