cygwin32 update (untested adaptation of patch against 5.005_03)
[p5sagit/p5-mst-13.2.git] / ext / POSIX / Makefile.PL
index d379fdb..62a87ca 100644 (file)
@@ -1,7 +1,9 @@
 use ExtUtils::MakeMaker;
 WriteMakefile(
     NAME       => 'POSIX',
-    ($^O eq 'MSWin32' ? () : (LIBS     => ["-lm -lposix -lcposix"])),
+    ($^O eq 'MSWin32' ? () : ($^O =~ /cygwin/ ? (LIBS  => ["-lmsvcrt"]) : 
+      (LIBS    => ["-lm -lposix -lcposix"])
+    )),
     MAN3PODS   => {},  # Pods will be built by installman.
     XSPROTOARG => '-noprototypes',             # XXX remove later?
     VERSION_FROM => 'POSIX.pm',