X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=mpeix%2Frelink;h=ec371421949588e81865b7fbb2cb03af4cd8a948;hb=38aa2d1871d776152eb9b958f87dbfa1f4c07399;hp=a36e23c7508a26472fb771bb284868762cdc647a;hpb=f6e660f0c3beaf77af0c63e50750344271b39862;p=p5sagit%2Fp5-mst-13.2.git diff --git a/mpeix/relink b/mpeix/relink index a36e23c..ec37142 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=perlmpe.$$ + +rm -f $TEMP $RAND.a $RAND.sl + +/bin/cat - >$TEMP <