Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / openssl / shlib / sco5-shared.sh
blobb3365d9f51d872313b09327f104bf2da09cd3b3f
1 #!/bin/sh
3 major="0"
4 minor="9.7b"
6 slib=libssl
7 sh_slib=$slib.so.$major.$minor
9 clib=libcrypto
10 sh_clib=$clib.so.$major.$minor
12 FLAGS="-O -DFILIO_H -Kalloca"
13 SHFLAGS="-Kpic -DPIC"
15 touch $sh_clib
16 touch $sh_slib
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`
23 OBJS="$OBJS `grep $obj allobjs`"
24 done
26 echo linking $clib.so
27 cc -G -o $sh_clib -h $sh_clib $OBJS -lnsl -lsocket
29 rm -f $clib.so
30 ln -s $sh_clib $clib.so
32 echo collecting all object files for $slib.so
33 OBJS=
34 for obj in `ar t libssl.a`
36 OBJS="$OBJS `grep $obj allobjs`"
37 done
39 echo linking $slib.so
40 cc -G -o $sh_slib -h $sh_slib $OBJS -L. -lcrypto
42 rm -f $slib.so
43 ln -s $sh_slib $slib.so
45 mv libRSAglue.a libRSAglue.a.orig
46 mv libcrypto.a libcrypto.a.orig
47 mv libssl.a libssl.a.orig