Subject: | Win32 compatibility patch |
Hi,
Please consider aplying the following simple patch to Makefile.PL that enables building this module on Win32 Strawberry Perl
diff -ru Crypt-OpenSSL-RSA-0.26.orig\Makefile.PL Crypt-OpenSSL-RSA-0.26\Makefile.PL
--- Crypt-OpenSSL-RSA-0.26.orig\Makefile.PL Tue Nov 15 05:08:38 2005
+++ Crypt-OpenSSL-RSA-0.26\Makefile.PL Sat Apr 10 08:50:04 2010
@@ -11,7 +11,7 @@
'DISTNAME' => 'Crypt-OpenSSL-RSA',
'VERSION_FROM' => 'RSA.pm', # finds $VERSION
'OBJECT' => 'RSA.o',
- 'LIBS' => ['-lssl -lcrypto'], # e.g., '-lm'
+ 'LIBS' => ($^O eq 'MSWin32') ? ['-lssl32 -leay32'] : ['-lssl -lcrypto'],
'PREREQ_PM' => { 'Crypt::OpenSSL::Random' => 0 },
'DEFINE' => '-DPERL5 -DOPENSSL_NO_KRB5',
# perl-5.8/gcc-3.2 needs -DPERL5, and redhat9 likes -DOPENSSL_NO_KRB5
--
kmx
Please consider aplying the following simple patch to Makefile.PL that enables building this module on Win32 Strawberry Perl
diff -ru Crypt-OpenSSL-RSA-0.26.orig\Makefile.PL Crypt-OpenSSL-RSA-0.26\Makefile.PL
--- Crypt-OpenSSL-RSA-0.26.orig\Makefile.PL Tue Nov 15 05:08:38 2005
+++ Crypt-OpenSSL-RSA-0.26\Makefile.PL Sat Apr 10 08:50:04 2010
@@ -11,7 +11,7 @@
'DISTNAME' => 'Crypt-OpenSSL-RSA',
'VERSION_FROM' => 'RSA.pm', # finds $VERSION
'OBJECT' => 'RSA.o',
- 'LIBS' => ['-lssl -lcrypto'], # e.g., '-lm'
+ 'LIBS' => ($^O eq 'MSWin32') ? ['-lssl32 -leay32'] : ['-lssl -lcrypto'],
'PREREQ_PM' => { 'Crypt::OpenSSL::Random' => 0 },
'DEFINE' => '-DPERL5 -DOPENSSL_NO_KRB5',
# perl-5.8/gcc-3.2 needs -DPERL5, and redhat9 likes -DOPENSSL_NO_KRB5
--
kmx