3 # Make a Solaris shared library
4 # contributed by Arno Hahma (arno@nitro.pp.utu.fi)
6 #--identification------------------------------------------------------
8 # $Id: mklib.solaris,v 1.2 1999/09/15 15:10:20 brianp Exp $
10 # $Log: mklib.solaris,v $
11 # Revision 1.2 1999/09/15 15:10:20 brianp
12 # added third, tiny version number to arguments
14 # Revision 1.1 1999/08/19 13:53:06 brianp
15 # initial check-in (post-crash)
19 #--common--------------------------------------------------------------
35 #--platform-------------------------------------------------------------
39 LIBRARY
=`basename $LIBRARY .a`
43 echo "Building shared object $LIBRARY.so.$VERSION and the archive library $LIBRARY.a"
44 rm -f ${LIBRARY}.a ${LIBRARY}.so.${VERSION}
45 ar ruv
${LIBRARY}.a
${OBJECTS}
47 ld
-G -o ${LIBRARY}.so.${VERSION} ${OBJECTS}
49 cp ${LIBRARY}.a ${LIBRARY}.so.${VERSION} ..
/lib
51 ln -s ${LIBRARY}.so.${VERSION} ${LIBRARY}.so