218665708af9ff1e9b254c52405012656e33c5a1
3 # Make a Solaris shared library
4 # contributed by Arno Hahma (arno@nitro.pp.utu.fi)
6 #--identification------------------------------------------------------
8 # $Id: mklib.solaris,v 1.1 1999/08/19 13:53:06 brianp Exp $
10 # $Log: mklib.solaris,v $
11 # Revision 1.1 1999/08/19 13:53:06 brianp
12 # initial check-in (post-crash)
16 #--common--------------------------------------------------------------
18 # Usage: mklib libname major minor file.o ...
20 # First argument is name of output library (LIBRARY)
21 # Second arg is major version number (MAJOR)
22 # Third arg is minor version number (MINOR)
23 # Rest of arguments are object files (OBJECTS)
36 #--platform-------------------------------------------------------------
40 LIBRARY
=`basename $LIBRARY .a`
44 echo "Building shared object $LIBRARY.so.$VERSION and the archive library $LIBRARY.a"
45 rm -f ${LIBRARY}.a ${LIBRARY}.so.${VERSION}
46 ar ruv
${LIBRARY}.a
${OBJECTS}
48 ld
-G -o ${LIBRARY}.so.${VERSION} ${OBJECTS}
50 cp ${LIBRARY}.a ${LIBRARY}.so.${VERSION} ..
/lib
52 ln -s ${LIBRARY}.so.${VERSION} ${LIBRARY}.so