do, warn, use
[p5sagit/p5-mst-13.2.git] / ext / POSIX / Makefile.PL
index 4a7eb9a..73bb02d 100644 (file)
@@ -1,6 +1,13 @@
 use ExtUtils::MakeMaker;
+use Config;
+my @libs;
+if ($^O ne 'MSWin32') {
+    @libs = ('LIBS' => ["-lm -lposix -lcposix"]);
+}
 WriteMakefile(
-    LIBS => ["-lm -lposix -lcposix"],
-    MAN3PODS   => ' ',         # Pods will be built by installman.
+    NAME       => 'POSIX',
+    @libs,
+    MAN3PODS   => {},  # Pods will be built by installman.
     XSPROTOARG => '-noprototypes',             # XXX remove later?
+    VERSION_FROM => 'POSIX.pm', 
 );