Subject: | Specify the OpenSSL library directory via an environment variable |
We use cpanm for installing CPAN modules, but I can't pass in where to
find the OpenSSL libs/headers as we don't use the operating systems
version. While I could circumvent this and do the perl Makefile.PL
dance directly, I'd prefer to us an environment variable
CRYPT_SSLEAY_LIBPATH.
diff -r -u Crypt-SSLeay-0.58/Makefile.PL Crypt-SSLeay-0.58-adam/
Makefile.PL
--- Crypt-SSLeay-0.58/Makefile.PL 2010-08-24 19:28:46.000000000
+0000
+++ Crypt-SSLeay-0.58-adam/Makefile.PL 2010-09-24 19:37:21.000000000
+0000
@@ -19,6 +19,7 @@
);
$OPT_DEFAULT ||= $ENV{CRYPT_SSLEAY_DEFAULT};
+$OPT_LIBPATH ||= $ENV{CRYPT_SSLEAY_LIBPATH};
# FIND POSSIBLE SSL INSTALLATIONS
diff -r -u Crypt-SSLeay-0.58/SSLeay.pm Crypt-SSLeay-0.58-adam/SSLeay.pm
--- Crypt-SSLeay-0.58/SSLeay.pm 2010-08-24 19:24:21.000000000 +0000
+++ Crypt-SSLeay-0.58-adam/SSLeay.pm 2010-09-24 20:31:38.000000000
+0000
@@ -162,6 +162,9 @@
make test
make install
+If you need to change the OpenSSL installation location, set the
+C<CRYPT_SSLEAY_LIBPATH> environment variable.
+
On Windows systems, both Strawberry Perl and ActiveState (as a separate
download via ppm) projects include a MingW based compiler distribution
and
C<dmake> which can be used to build both OpenSSL and C<Crypt-SSLeay>.
If you
Only in Crypt-SSLeay-0.58-adam/: test.config