diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2001-09-06 12:28:05 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2001-09-06 12:28:05 +0000 |
commit | 978ebf0141ba4d3053b26a7705e659b2608a647b (patch) | |
tree | 3f3e06bc432c4a3fca2d3ea91ddf6805bb49a581 /shlib/svr5-shared-gcc.sh | |
parent | a9ed4da8eb6af03d551c68b4b9ec1c47e16fed19 (diff) |
Build shared libaries for Unixware-7 and OpenUNIX-8 in old (pre 0.9.7)
style (Boyd Lynn Gerber <gerberb@zenez.com>).
Diffstat (limited to 'shlib/svr5-shared-gcc.sh')
-rwxr-xr-x | shlib/svr5-shared-gcc.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/shlib/svr5-shared-gcc.sh b/shlib/svr5-shared-gcc.sh new file mode 100755 index 0000000000..b36a0375a6 --- /dev/null +++ b/shlib/svr5-shared-gcc.sh @@ -0,0 +1,48 @@ +#!/usr/bin/sh + +major="0" +minor="9.7" + +slib=libssl +sh_slib=$slib.so.$major.$minor + +clib=libcrypto +sh_clib=$clib.so.$major.$minor + +FLAGS="-O3 -DFILIO_H -fomit-frame-pointer -pthread +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 + |