Allow IPv6 address entry in tools>ping - Loosens valid character check
[tomato/davidwu.git] / release / src / router / openssl / shlib / sco5-shared-gcc.sh
blobfe4a457b52a7c83f41cf87e3a76b3b75a14fc996
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="-O3 -fomit-frame-pointer"
13 SHFLAGS="-DPIC -fPIC"
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 gcc -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 gcc -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