2001-09-06 12:28:05 +00:00
|
|
|
#!/usr/bin/sh
|
|
|
|
|
|
|
|
major="0"
|
|
|
|
minor="9.7"
|
|
|
|
|
|
|
|
slib=libssl
|
|
|
|
sh_slib=$slib.so.$major.$minor
|
|
|
|
|
|
|
|
clib=libcrypto
|
|
|
|
sh_clib=$clib.so.$major.$minor
|
|
|
|
|
2002-05-12 20:36:49 +00:00
|
|
|
FLAGS="-O3 -DFILIO_H -fomit-frame-pointer -pthread"
|
2001-09-06 12:28:05 +00:00
|
|
|
SHFLAGS="-DPIC -fPIC"
|
|
|
|
|
|
|
|
touch $sh_clib
|
|
|
|
touch $sh_slib
|
|
|
|
|
|
|
|
echo collecting all object files for $clib.so
|
|
|
|
OBJS=
|
|
|
|
find . -name \*.o -print > allobjs
|
|
|
|
for obj in `ar t libcrypto.a`
|
|
|
|
do
|
|
|
|
OBJS="$OBJS `grep $obj allobjs`"
|
|
|
|
done
|
|
|
|
|
|
|
|
echo linking $clib.so
|
|
|
|
gcc -G -o $sh_clib -h $sh_clib $OBJS -lnsl -lsocket
|
|
|
|
|
|
|
|
rm -f $clib.so
|
|
|
|
ln -s $sh_clib $clib.so
|
|
|
|
|
|
|
|
echo collecting all object files for $slib.so
|
|
|
|
OBJS=
|
|
|
|
for obj in `ar t libssl.a`
|
|
|
|
do
|
|
|
|
OBJS="$OBJS `grep $obj allobjs`"
|
|
|
|
done
|
|
|
|
|
|
|
|
echo linking $slib.so
|
|
|
|
gcc -G -o $sh_slib -h $sh_slib $OBJS -L. -lcrypto
|
|
|
|
|
|
|
|
rm -f $slib.so
|
|
|
|
ln -s $sh_slib $slib.so
|
|
|
|
|
|
|
|
mv libRSAglue.a libRSAglue.a.orig
|
|
|
|
mv libcrypto.a libcrypto.a.orig
|
|
|
|
mv libssl.a libssl.a.orig
|
|
|
|
|