From: Jarkko Hietaniemi Date: Fri, 29 Mar 2002 02:59:03 +0000 (+0000) Subject: MPE/iX tweaks from Mark Bixby. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3055b6279da2a83c1dd8eceb24b548eccb134300;p=p5sagit%2Fp5-mst-13.2.git MPE/iX tweaks from Mark Bixby. p4raw-id: //depot/perl@15590 --- diff --git a/ext/Storable/t/lock.t b/ext/Storable/t/lock.t index becaec3..77d73bb 100644 --- a/ext/Storable/t/lock.t +++ b/ext/Storable/t/lock.t @@ -28,10 +28,6 @@ sub BEGIN { print "1..0 # Skip: Storable was not built\n"; exit 0; } - if ($^O eq 'mpeix') { - print "1..0 # Skip: truncate missing on MPE\n"; - exit 0; - } require 'lib/st-dump.pl'; } diff --git a/mpeix/relink b/mpeix/relink index 073b707..0ba9aeb 100755 --- a/mpeix/relink +++ b/mpeix/relink @@ -1,13 +1,49 @@ #!/bin/sh +# The MPE POSIX libc archive library contains rand(), but this function has +# been omitted from the libc shared library on the mistaken assumption that +# the rand() function in the kernel library /SYS/PUB/XL could be used instead. +# However, rand() in /SYS/PUB/XL is a Fortran function with different semantics +# from the C version that we expect. + +# So in order to get the correct rand() function and to make it available to +# the dynamically loaded perl extensions, we will build our own mini rand() +# shared library and add this to the perl NMPRG's XL list. + +RAND=/$HPACCOUNT/$HPGROUP/libcrand + +echo "Creating $RAND.sl...\n" + +TEMP=/tmp/perlmpe.$$ + +rm -f $TEMP $RAND.a $RAND.sl + +/bin/cat - >$TEMP <