X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=mpeix%2Frelink;h=0ba9aebadad7a5bde3279ce090ea673a98f0ca0b;hb=363c40c40eaf5d0cfd92f460a3f838c41f9756ad;hp=7760fdda9abab4dc1f8004df22ac4f9022fa0611;hpb=4fe4fdb337db1a2f3fda2afa004e8f6cb3994fcd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/mpeix/relink b/mpeix/relink index 7760fdd..0ba9aeb 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=/tmp/perlmpe.$$ + +rm -f $TEMP $RAND.a $RAND.sl + +/bin/cat - >$TEMP <