xref: /minix3/crypto/external/bsd/openssl/dist/shlib/solaris-sc4.sh (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc#!/bin/sh
2*ebfedea0SLionel Sambuc
3*ebfedea0SLionel Sambucmajor="1"
4*ebfedea0SLionel Sambuc
5*ebfedea0SLionel Sambucslib=libssl
6*ebfedea0SLionel Sambucsh_slib=$slib.so.$major
7*ebfedea0SLionel Sambuc
8*ebfedea0SLionel Sambucclib=libcrypto
9*ebfedea0SLionel Sambucsh_clib=$clib.so.$major
10*ebfedea0SLionel Sambuc
11*ebfedea0SLionel Sambucecho collecting all object files for $clib.so
12*ebfedea0SLionel SambucOBJS=
13*ebfedea0SLionel Sambucfind . -name \*.o -print > allobjs
14*ebfedea0SLionel Sambucfor obj in `ar t libcrypto.a`
15*ebfedea0SLionel Sambucdo
16*ebfedea0SLionel Sambuc	OBJS="$OBJS `grep $obj allobjs`"
17*ebfedea0SLionel Sambucdone
18*ebfedea0SLionel Sambuc
19*ebfedea0SLionel Sambucecho linking $clib.so
20*ebfedea0SLionel Sambuccc -G -o $sh_clib -h $sh_clib $OBJS -lnsl -lsocket
21*ebfedea0SLionel Sambuc
22*ebfedea0SLionel Sambucrm -f $clib.so
23*ebfedea0SLionel Sambucln -s $sh_clib $clib.so
24*ebfedea0SLionel Sambuc
25*ebfedea0SLionel Sambucecho collecting all object files for $slib.so
26*ebfedea0SLionel SambucOBJS=
27*ebfedea0SLionel Sambucfor obj in `ar t libssl.a`
28*ebfedea0SLionel Sambucdo
29*ebfedea0SLionel Sambuc	OBJS="$OBJS `grep $obj allobjs`"
30*ebfedea0SLionel Sambucdone
31*ebfedea0SLionel Sambuc
32*ebfedea0SLionel Sambucecho linking $slib.so
33*ebfedea0SLionel Sambuccc -G -o $sh_slib -h $sh_slib $OBJS -L. -lcrypto
34*ebfedea0SLionel Sambuc
35*ebfedea0SLionel Sambucrm -f $slib.so
36*ebfedea0SLionel Sambucln -s $sh_slib $slib.so
37*ebfedea0SLionel Sambuc
38*ebfedea0SLionel Sambucrm -f allobjs
39*ebfedea0SLionel Sambuc
40*ebfedea0SLionel Sambucmv libRSAglue.a libRSAglue.a.orig
41*ebfedea0SLionel Sambucmv libcrypto.a  libcrypto.a.orig
42*ebfedea0SLionel Sambucmv libssl.a     libssl.a.orig
43