2
0

solaris-sc4.sh 721 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. major="1"
  3. slib=libssl
  4. sh_slib=$slib.so.$major
  5. clib=libcrypto
  6. sh_clib=$clib.so.$major
  7. echo collecting all object files for $clib.so
  8. OBJS=
  9. find . -name \*.o -print > allobjs
  10. for obj in `ar t libcrypto.a`
  11. do
  12. OBJS="$OBJS `grep $obj allobjs`"
  13. done
  14. echo linking $clib.so
  15. cc -G -o $sh_clib -h $sh_clib $OBJS -lnsl -lsocket
  16. rm -f $clib.so
  17. ln -s $sh_clib $clib.so
  18. echo collecting all object files for $slib.so
  19. OBJS=
  20. for obj in `ar t libssl.a`
  21. do
  22. OBJS="$OBJS `grep $obj allobjs`"
  23. done
  24. echo linking $slib.so
  25. cc -G -o $sh_slib -h $sh_slib $OBJS -L. -lcrypto
  26. rm -f $slib.so
  27. ln -s $sh_slib $slib.so
  28. rm -f allobjs
  29. mv libRSAglue.a libRSAglue.a.orig
  30. mv libcrypto.a libcrypto.a.orig
  31. mv libssl.a libssl.a.orig