etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / openssl / dist / shlib / svr5-shared-gcc.sh
blobc5d0cc56ace48759d71e1d094b39baff008f61fd
1 #!/usr/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 -DFILIO_H -fomit-frame-pointer -pthread"
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