diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2003-03-23 10:16:04 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2003-03-23 10:16:04 +0000 |
commit | 21eb91c79e3a843eb4b91feffb4c9dab57ecb691 (patch) | |
tree | 6bda0e82fd850f988f0047cab3e0bc935834445e /shlib/sco5-shared-gcc.sh | |
parent | 9d80973ea1992f73b1571872260e1af51cf3ba8f (diff) |
Add SCO5 shared library scripts.
Upate SVR5 scripts for the upcoming 0.9.7b.
Submitted by: Boyd Lynn Gerber <gerberb@zenez.com>
Diffstat (limited to 'shlib/sco5-shared-gcc.sh')
-rwxr-xr-x | shlib/sco5-shared-gcc.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/shlib/sco5-shared-gcc.sh b/shlib/sco5-shared-gcc.sh new file mode 100755 index 0000000000..fe4a457b52 --- /dev/null +++ b/shlib/sco5-shared-gcc.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +major="0" +minor="9.7b" + +slib=libssl +sh_slib=$slib.so.$major.$minor + +clib=libcrypto +sh_clib=$clib.so.$major.$minor + +FLAGS="-O3 -fomit-frame-pointer" +SHFLAGS="-DPIC -fPIC" + +touch $sh_clib +touch $sh_slib + +echo collecting all object files for $clib.so +OBJS= +find . -name \*.o -print > allobjs +for obj in `ar t libcrypto.a` +do + OBJS="$OBJS `grep $obj allobjs`" +done + +echo linking $clib.so +gcc -G -o $sh_clib -h $sh_clib $OBJS -lnsl -lsocket + +rm -f $clib.so +ln -s $sh_clib $clib.so + +echo collecting all object files for $slib.so +OBJS= +for obj in `ar t libssl.a` +do + OBJS="$OBJS `grep $obj allobjs`" +done + +echo linking $slib.so +gcc -G -o $sh_slib -h $sh_slib $OBJS -L. -lcrypto + +rm -f $slib.so +ln -s $sh_slib $slib.so + +mv libRSAglue.a libRSAglue.a.orig +mv libcrypto.a libcrypto.a.orig +mv libssl.a libssl.a.orig + |