X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=mpeix%2Frelink;h=2984bcecfe3f373bc1f337bfdb54a21bbf5f8313;hb=3f16acfd45f6cf4dce6b90474f865dee8636a1a0;hp=7760fdda9abab4dc1f8004df22ac4f9022fa0611;hpb=4fe4fdb337db1a2f3fda2afa004e8f6cb3994fcd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/mpeix/relink b/mpeix/relink index 7760fdd..2984bce 100755 --- a/mpeix/relink +++ b/mpeix/relink @@ -1,8 +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=./perlmpe.$$ + +rm -f $TEMP $RAND.a $RAND.sl + +/bin/cat - >$TEMP <