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-Random-0.04.orig\Makefile.PL Crypt-OpenSSL-Random-0.04\Makefile.PL
--- Crypt-OpenSSL-Random-0.04.orig\Makefile.PL Mon Apr 09 04:17:54 2001
+++ Crypt-OpenSSL-Random-0.04\Makefile.PL Sat Apr 10 08:51:32 2010
@@ -5,7 +5,7 @@
'NAME' => 'Crypt::OpenSSL::Random',
'VERSION_FROM' => 'Random.pm', # finds $VERSION
'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
- 'LIBS' => ['-lssl -lcrypto'], # e.g., '-lm'
+ 'LIBS' => ($^O eq 'MSWin32') ? ['-lssl32 -leay32'] : ['-lssl -lcrypto'],
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '', # e.g., '-I/usr/include/other'
);
--
kmx
Please consider aplying the following simple patch to Makefile.PL that enables building this module on Win32 Strawberry Perl
diff -ru Crypt-OpenSSL-Random-0.04.orig\Makefile.PL Crypt-OpenSSL-Random-0.04\Makefile.PL
--- Crypt-OpenSSL-Random-0.04.orig\Makefile.PL Mon Apr 09 04:17:54 2001
+++ Crypt-OpenSSL-Random-0.04\Makefile.PL Sat Apr 10 08:51:32 2010
@@ -5,7 +5,7 @@
'NAME' => 'Crypt::OpenSSL::Random',
'VERSION_FROM' => 'Random.pm', # finds $VERSION
'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
- 'LIBS' => ['-lssl -lcrypto'], # e.g., '-lm'
+ 'LIBS' => ($^O eq 'MSWin32') ? ['-lssl32 -leay32'] : ['-lssl -lcrypto'],
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '', # e.g., '-I/usr/include/other'
);
--
kmx