This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Makefile.PL changes to compiler Win32.xs using cygwin
authorJan Dubois <jand@activestate.com>
Wed, 6 Dec 2006 16:26:38 +0000 (08:26 -0800)
committerSteve Hay <SteveHay@planit.com>
Thu, 7 Dec 2006 08:53:15 +0000 (08:53 +0000)
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,
 );