home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / contrib / sunlibc.old / make_lib.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1993-11-05  |  693b  |  37 lines

  1. #!/bin/sh
  2.  
  3. # Set this variable to be the .../bind/contrib/sunlibc directory to where the
  4. #  special libc .o files were copied.
  5. #resolvobjdir=/usr/local/src/bind-4.9.2/contrib/sunlibc
  6. resolvobjdir=
  7.  
  8. if [ "${resolvobjdir}x" = "x" ]; then
  9.     echo 'Edit the make_lib script to set $resolvobjdir to the proper'
  10.     echo '.../bind/contrib/sunlibc directory.'
  11.     exit 1
  12. fi
  13.  
  14. mkdir tmp
  15. cd tmp
  16. ar x ../libc_pic.a
  17. rm __.SYMDEF
  18. for f in *.; do
  19.     mv $f ${f}o
  20. done
  21. rm gethostent.o
  22.  
  23. cp $resolvobjdir/*.o .
  24.  
  25. cd ..
  26. if [ ! -f lorder-sparc.orig ]
  27. then
  28.         patch < $resolvobjdir/sun-lorder-sparc.patches
  29. fi
  30. if [ ! -f Makefile.orig ]
  31. then
  32.         patch < $resolvobjdir/sun-Makefile.patches
  33. fi
  34.  
  35. time make libc.so
  36. ls -l
  37.