Subject: | Patch to enable successfull build on Win32 strawberry perl |
See attached file.
--
kmx
--
kmx
Subject: | Socket-Class-2.256_strawberryperl.patch |
diff -ru Socket-Class-2.256\Makefile.PL Socket-Class-2.256.patched\Makefile.PL
--- Socket-Class-2.256\Makefile.PL Sun May 03 17:55:38 2009
+++ Socket-Class-2.256.patched\Makefile.PL Thu Jan 19 12:08:38 2012
@@ -74,15 +74,17 @@
}
if( $^O eq 'MSWin32' ) {
- @_IP = split( ';', $ENV{'INCLUDE'} );
- $r = find_header_item( \@_IP, 'winsock2.h', 'getaddrinfo' );
- $r += find_header_item( \@_IP, 'winsock2.h', 'freeaddrinfo' );
- $r += find_header_item( \@_IP, 'winsock2.h', 'getnameinfo' );
- if( $r < 3 ) {
- $_MAKEOPTS{'DEFINE'} .= ' -DSC_OLDNET';
- }
- # bug #37639
- $ExtUtils::MM_Win32::Config{'ccversion'} = 13;
+ if ( $Config{cc} !~ /gcc/ ) {
+ @_IP = split( ';', $ENV{'INCLUDE'} );
+ $r = find_header_item( \@_IP, 'winsock2.h', 'getaddrinfo' );
+ $r += find_header_item( \@_IP, 'winsock2.h', 'freeaddrinfo' );
+ $r += find_header_item( \@_IP, 'winsock2.h', 'getnameinfo' );
+ if( $r < 3 ) {
+ $_MAKEOPTS{'DEFINE'} .= ' -DSC_OLDNET';
+ }
+ # bug #37639
+ $ExtUtils::MM_Win32::Config{'ccversion'} = 13;
+ }
}
else {
@_IP = qw(/usr/local/include /usr/include /opt/include);
diff -ru Socket-Class-2.256\xs\sc_ssl\Makefile.PL Socket-Class-2.256.patched\xs\sc_ssl\Makefile.PL
--- Socket-Class-2.256\xs\sc_ssl\Makefile.PL Sun May 10 03:29:43 2009
+++ Socket-Class-2.256.patched\xs\sc_ssl\Makefile.PL Thu Jan 19 12:15:40 2012
@@ -70,7 +70,7 @@
if( $^O eq 'MSWin32' ) {
$makeopts{'DEFINE'} .= ' -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS';
- if( ! $openssldir ) {
+ if( ! $openssldir && $Config{cc} !~ /gcc/ ) {
$ENV{'PATH'} .= ";$Config{'bin'}";
chdir "openssl/source/";
unlink 'bufferoverflowu.lib';