From 3055b6279da2a83c1dd8eceb24b548eccb134300 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Fri, 29 Mar 2002 02:59:03 +0000 Subject: MPE/iX tweaks from Mark Bixby. p4raw-id: //depot/perl@15590 --- mpeix/relink | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'mpeix/relink') diff --git a/mpeix/relink b/mpeix/relink index 073b707864..0ba9aebada 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 <