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