From 92a7946f246bf251c4751997ff2c11b43015cf92 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 30 Mar 2022 09:54:32 +0200 Subject: [PATCH] Check for bin/openssl in $Config{prefix} as well One such system is the terminal emulator Termux [1] on Android. With this patch, installation of Net::SSLeay through cpan/cpanm works out of the box. [1] https://termux.org --- Changes | 3 +++ Makefile.PL | 1 + 2 files changed, 4 insertions(+) diff --git a/Changes b/Changes index cfab1d65..658b64ea 100644 --- a/Changes +++ b/Changes @@ -6,6 +6,9 @@ Revision history for Perl extension Net::SSLeay. Clang 12 or greater. Partially fixes GH-383. - Silence compound-token-split-by-macro warnings when building Net-SSLeay with Clang 12 or greater. Fixes the remainder of GH-383. + - When building Net-SSLeay, search for the openssl binary in the same directory + in which Perl is installed (i.e. $Config{prefix}/bin/). Thanks to Henrik + Grimler for the patch. 1.93_01 2022-03-20 - LibreSSL 3.5.0 has removed access to internal data diff --git a/Makefile.PL b/Makefile.PL index 2b416ece..aaad4c1e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -357,6 +357,7 @@ sub find_openssl_prefix { '/ssl111$exe/openssl.exe' => '/ssl111$root',# VMS, VSI install '/ssl1$exe/openssl.exe' => '/ssl1$root',# VMS, VSI or HPE install '/ssl$exe/openssl.exe' => '/ssl$root', # VMS, HP install + $Config{prefix} . '/bin/openssl' => $Config{prefix}, # Custom prefix, e.g. Termux ); while (my $k = shift @guesses