Hi, my idea would be using standalone '*.so.1.0.0' files instead of
archive members:
gcc -o libmylib.so ... \
/usr/lib/libssl.so.1.0.0 /usr/lib/libcrypto.so.1.0.0
To achieve this you have to extract the members from the archives
and re-link libssl.so like this:
-------------------------------------------------BEGIN---
#!/bin/sh
set -e
ar -X32 -xv /usr/lib/libcrypto.a libcrypto.so.1.0.0
ar -X32 -xv /usr/lib/libssl.a libssl.so.1.0.0
explist_so libcrypto.so.1.0.0 >libcrypto.exp
explist_so libssl.so.1.0.0 >libssl.exp
mv libssl.so.1.0.0 libssl.bak.1.0.0
ld -b32 -r -o libssl.o.1.0.0 -bnso libssl.bak.1.0.0
ld -b32 -G -bnoentry -bernotok -bE:libssl.exp -o libssl.so.1.0.0 \
libssl.o.1.0.0 libcrypto.so.1.0.0 -lpthreads -lc
ln -sf libssl.so.1.0.0 libssl.so
ln -sf libcrypto.so.1.0.0 libcrypto.so
-------------------------------------------------END-----
'explist_so' script:
http://lzsiga.users.sourceforge.net/explist_so
more details:
http://lzsiga.users.sourceforge.net/aix-linking.html