third-party libs
This commit is contained in:
parent
f836927d3a
commit
b154ee9266
3667 changed files with 854591 additions and 0 deletions
48
third-party/openssl-1.0.0d/shlib/svr5-shared.sh
vendored
Executable file
48
third-party/openssl-1.0.0d/shlib/svr5-shared.sh
vendored
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
#!/usr/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 -Kthread"
|
||||
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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue