diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-22 16:29:37 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-22 16:29:37 +0000 |
commit | 514114c10e96cbf0be8c89b8bb59a99001534fec (patch) | |
tree | c3ed0f8be4740d13afb5746e7e2d732edeef8453 | |
parent | 3a1f2dc96a3b866c46ab6f878057fc73d4b009d4 (diff) | |
download | perl-514114c10e96cbf0be8c89b8bb59a99001534fec.tar.gz |
RM600-svr4 tweaks (from Frank Ridderbusch
<frank.ridderbusch@pdb.siemens.de>)
p4raw-id: //depot/perl@5878
-rw-r--r-- | ext/POSIX/Makefile.PL | 12 | ||||
-rw-r--r-- | lib/ExtUtils/Liblist.pm | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/ext/POSIX/Makefile.PL b/ext/POSIX/Makefile.PL index 15256cf198..55c5c1fbf3 100644 --- a/ext/POSIX/Makefile.PL +++ b/ext/POSIX/Makefile.PL @@ -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', diff --git a/lib/ExtUtils/Liblist.pm b/lib/ExtUtils/Liblist.pm index 47ce3dcf87..6029557f11 100644 --- a/lib/ExtUtils/Liblist.pm +++ b/lib/ExtUtils/Liblist.pm @@ -109,6 +109,7 @@ sub _unix_os2_ext { } elsif (-f ($fullname="$thispth/lib$thislib.$so") && (($Config{'dlsrc'} ne "dl_dld.xs") || ($thislib eq "m"))){ } elsif (-f ($fullname="$thispth/lib${thislib}_s$Config_libext") + && (! $Config{'archname'} =~ /RM\d\d\d-svr4/) && ($thislib .= "_s") ){ # we must explicitly use _s version } elsif (-f ($fullname="$thispth/lib$thislib$Config_libext")){ } elsif (-f ($fullname="$thispth/$thislib$Config_libext")){ |