home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / mklib.irix5 < prev    next >
Text File  |  1996-05-27  |  760b  |  32 lines

  1. #!/bin/sh
  2.  
  3. # Make an IRIX 5 DSO
  4.  
  5. # First argument is name of output library
  6. # Rest of arguments are object files
  7.  
  8. LIBRARY=$1
  9.  
  10. shift 1
  11. OBJECTS=$*
  12.  
  13.  
  14. # This is a bit of a kludge, but...
  15. if test ${LIBRARY} = "libMesaGL.so" ; then
  16.     # must add libXext.a to MesaGL.so in case one relinks a precompiled
  17.     # OpenGL program which wasn't linked with -lXext.
  18.     OBJECTS="${OBJECTS} /usr/lib/libXext.a"
  19. fi
  20.  
  21.  
  22. ld -shared -all -o ${LIBRARY} ${OBJECTS}
  23.  
  24.  
  25. # You may want to add the following to the ld line:
  26. #   -soname <path>$LIBNAME
  27. #
  28. # where LIBNAME=`basename $LIBRARY` and <path> is where you're going to
  29. # put Mesa's libraries.  This may solve problems with the runtime
  30. # loader/linker (rld) not being able to find the library.
  31. # For example:  -soname /usr/local/lib/$LIBNAME
  32.