Prevent MakeMaker from searching for the winsock2 library - it was found by the linke...
robs [Tue, 4 Sep 2001 12:34:10 +0000 (12:34 +0000)]
perl/Makefile.PL

index 1c80424..11a9538 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.PL,v 1.20 2001/09/01 13:09:20 skimo Exp $
+# $Id: Makefile.PL,v 1.21 2001/09/04 12:34:10 robs Exp $
 
 use ExtUtils::MakeMaker;
 use IO::File;
@@ -89,7 +89,9 @@ if ($pure) {
 } else {
 
        if ("$sys" eq "win32") {
-               @libs = (@libs) ? map { "$_ ws2_32.lib" } @libs : ('ws2_32.lib');
+               @libs = (scalar @libs)
+                       ? map { "$_ :nosearch -lws2_32" } @libs 
+                       : (':nosearch -lws2_32');
                push @extras, 'DEFINE' => '-DDLLAPI=__declspec(dllexport)';
        }