Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 1 | Avoid running target binaries during in cross build |
| 2 | |
| 3 | Upstream-Status: Inappropriate [Cross-compile specific] |
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 | --- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2018-08-27 14:56:24.788544991 +0200 |
| 6 | +++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2018-08-27 15:00:12.847266331 +0200 |
| 7 | @@ -24,20 +24,7 @@ |
| 8 | $self->requires_external_cc; |
| 9 | |
| 10 | my $prefix = $self->find_openssl_prefix; |
| 11 | - my $exec = $self->find_openssl_exec($prefix); |
| 12 | - |
| 13 | - unless (-x $exec) { |
| 14 | - print <<EOM; |
| 15 | -*** Could not find OpenSSL |
| 16 | - If it's already installed, please set the OPENSSL_PREFIX environment |
| 17 | - variable accordingly. If it isn't installed yet, get the latest version |
| 18 | - from http://www.openssl.org/. |
| 19 | -EOM |
| 20 | - exit 0; # according http://wiki.cpantesters.org/wiki/CPANAuthorNotes this is best-practice when "missing library" |
| 21 | - } |
| 22 | - |
| 23 | - $self->check_openssl_version($prefix, $exec); |
| 24 | - my $opts = $self->ssleay_get_build_opts($prefix, $exec); |
| 25 | + my $opts = $self->ssleay_get_build_opts($prefix); |
| 26 | |
| 27 | $self->makemaker_args( |
| 28 | CCCDLFLAGS => $opts->{cccdlflags}, |
| 29 | @@ -58,7 +45,7 @@ |
| 30 | } |
| 31 | |
| 32 | sub ssleay_get_build_opts { |
| 33 | - my ($self, $prefix, $exec) = @_; |
| 34 | + my ($self, $prefix) = @_; |
| 35 | |
| 36 | my $opts = { |
| 37 | lib_links => [], |