~ubuntu-branches/ubuntu/lucid/openssl/lucid-security

1 by Christoph Martin
Import upstream version 0.9.7d
1
#!/usr/bin/sh
2
3
major="0"
4
minor="9.7b"
5
6
slib=libssl
7
sh_slib=$slib.so.$major.$minor
8
9
clib=libcrypto
10
sh_clib=$clib.so.$major.$minor
11
12
FLAGS="-O3 -DFILIO_H -fomit-frame-pointer -pthread"
13
SHFLAGS="-DPIC -fPIC"
14
15
touch $sh_clib
16
touch $sh_slib
17
18
echo collecting all object files for $clib.so
19
OBJS=
20
find . -name \*.o -print > allobjs
21
for obj in `ar t libcrypto.a`
22
do
23
	OBJS="$OBJS `grep $obj allobjs`"
24
done
25
26
echo linking $clib.so
27
gcc -G -o $sh_clib -h $sh_clib $OBJS -lnsl -lsocket
28
29
rm -f $clib.so
30
ln -s $sh_clib $clib.so
31
32
echo collecting all object files for $slib.so
33
OBJS=
34
for obj in `ar t libssl.a`
35
do
36
	OBJS="$OBJS `grep $obj allobjs`"
37
done
38
39
echo linking $slib.so
40
gcc -G -o $sh_slib -h $sh_slib $OBJS -L. -lcrypto
41
42
rm -f $slib.so
43
ln -s $sh_slib $slib.so
44
45
mv libRSAglue.a libRSAglue.a.orig
46
mv libcrypto.a  libcrypto.a.orig
47
mv libssl.a     libssl.a.orig
48