diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2003-03-23 11:18:05 +0100 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2003-03-23 11:18:05 +0100 |
commit | 32e75dd3f02a6d93fcf74dadaccf2d0402c782df (patch) | |
tree | 243c61d88425f56216bd3753a8ca0d41c280b8df /shlib | |
parent | To define OPENSSL_NO_FP_API for all MSDOS type targets was unfair (diff) | |
download | openssl-32e75dd3f02a6d93fcf74dadaccf2d0402c782df.tar.xz openssl-32e75dd3f02a6d93fcf74dadaccf2d0402c782df.zip |
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')
-rwxr-xr-x | shlib/sco5-shared-gcc.sh | 48 | ||||
-rwxr-xr-x | shlib/sco5-shared-installed | 28 | ||||
-rwxr-xr-x | shlib/sco5-shared.sh | 48 | ||||
-rwxr-xr-x | shlib/svr5-shared-gcc.sh | 2 | ||||
-rwxr-xr-x | shlib/svr5-shared-installed | 3 | ||||
-rwxr-xr-x | shlib/svr5-shared.sh | 2 |
6 files changed, 127 insertions, 4 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 + diff --git a/shlib/sco5-shared-installed b/shlib/sco5-shared-installed new file mode 100755 index 0000000000..509902833f --- /dev/null +++ b/shlib/sco5-shared-installed @@ -0,0 +1,28 @@ +#!/bin/sh + +major="0" +minor="9.7b" + +slib=libssl +sh_slib=$slib.so.$major.$minor + +clib=libcrypto +sh_clib=$clib.so.$major.$minor + +# If you want them in /usr/local/lib then change INSTALLTOP to point there. +#INSTALLTOP=/usr/local/ssl/lib +INSTALLTOP=/usr/local/lib + +cp -p $sh_clib $INSTALLTOP +cp -p $sh_slib $INSTALLTOP + +PWD=`pwd` +cd $INSTALLTOP +rm -f $INSTALLTOP/$clib.so +ln -s $INSTALLTOP/$sh_clib $clib.so + +rm -f $INSTALLTOP/$slib.so +ln -s $INSTALLTOP/$sh_slib $slib.so + +cd $PWD + diff --git a/shlib/sco5-shared.sh b/shlib/sco5-shared.sh new file mode 100755 index 0000000000..b3365d9f51 --- /dev/null +++ b/shlib/sco5-shared.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="-O -DFILIO_H -Kalloca" +SHFLAGS="-Kpic -DPIC" + +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 +cc -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 +cc -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 + diff --git a/shlib/svr5-shared-gcc.sh b/shlib/svr5-shared-gcc.sh index 76957df947..c5d0cc56ac 100755 --- a/shlib/svr5-shared-gcc.sh +++ b/shlib/svr5-shared-gcc.sh @@ -1,7 +1,7 @@ #!/usr/bin/sh major="0" -minor="9.7" +minor="9.7b" slib=libssl sh_slib=$slib.so.$major.$minor diff --git a/shlib/svr5-shared-installed b/shlib/svr5-shared-installed index 544f5a9417..b1def35d5c 100755 --- a/shlib/svr5-shared-installed +++ b/shlib/svr5-shared-installed @@ -1,7 +1,7 @@ #!/usr/bin/sh major="0" -minor="9.7" +minor="9.7b" slib=libssl sh_slib=$slib.so.$major.$minor @@ -25,4 +25,3 @@ rm -f $INSTALLTOP/$slib.so ln -s $INSTALLTOP/$sh_slib $slib.so cd $PWD - diff --git a/shlib/svr5-shared.sh b/shlib/svr5-shared.sh index a70bb65baa..9edf26e9a7 100755 --- a/shlib/svr5-shared.sh +++ b/shlib/svr5-shared.sh @@ -1,7 +1,7 @@ #!/usr/bin/sh major="0" -minor="9.7" +minor="9.7b" slib=libssl sh_slib=$slib.so.$major.$minor |