#!/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 <