Makefile.PL changes to compiler Win32.xs using cygwin
Jan Dubois [Wed, 6 Dec 2006 16:26:38 +0000 (08:26 -0800)]
Message-ID: <5nnen2p2h4lhremj0qf1tmpkl0asvk87hr@4ax.com>

p4raw-id: //depot/perl@29481

win32/ext/Win32/Makefile.PL

index c167ab3..b6f5744 100644 (file)
@@ -1,6 +1,10 @@
 use ExtUtils::MakeMaker;
 
+my @libs;
+push @libs, '-L/lib/w32api -lole32 -lversion' if $^O eq "cygwin";
+
 WriteMakefile(
-    NAME               => 'Win32',
-    VERSION_FROM       => 'Win32.pm',
+    NAME         => 'Win32',
+    VERSION_FROM => 'Win32.pm',
+    LIBS         => \@libs,
 );