RM600-svr4 tweaks (from Frank Ridderbusch
[p5sagit/p5-mst-13.2.git] / ext / POSIX / Makefile.PL
index 15256cf..55c5c1f 100644 (file)
@@ -1,7 +1,17 @@
 use ExtUtils::MakeMaker;
+use Config;
+my @libs;
+if ($^O ne 'MSWin32') {
+    if ($Config{archname} =~ /RM\d\d\d-svr4/) {
+       @libs = ('LIBS' => ["-lm -lc -lposix -lcposix"]);
+    }
+    else {
+       @libs = ('LIBS' => ["-lm -lposix -lcposix"]);
+    }
+}
 WriteMakefile(
     NAME       => 'POSIX',
-    ($^O eq 'MSWin32' ? () : (LIBS => ["-lm -lposix -lcposix"])),
+    @libs,
     MAN3PODS   => {},  # Pods will be built by installman.
     XSPROTOARG => '-noprototypes',             # XXX remove later?
     VERSION_FROM => 'POSIX.pm',