On 12/19/2011 10:38 AM, grarpamp wrote:
I have a case that needs zlib statically in openssl.
But I can't seem to make that. Only dynamic is made.
For testing I put zlib125 in its own<dir>.
Then for openssl...
./config
--prefix=<path>
--with-zlib-include=<dir>/include
--with-zlib-lib=<dir>/lib
shared
zlib
make
make install
This gives...
LD_LIBRARY_PATH=../zlib125/lib ldd bin/openssl
bin/openssl:
libssl.so.1.0.0 => /.../openssl100e/lib/libssl.so.1.0.0 (0x28102000)
libcrypto.so.1.0.0 => /.../openssl100e/lib/libcrypto.so.1.0.0 (0x28151000)
=> libz.so.1 => ../zlib125/lib/libz.so.1 (0x282bd000)
libthr.so.3 => /lib/libthr.so.3 (0x282d3000)
libc.so.7 => /lib/libc.so.7 (0x282e8000)
As far as I understand things...
'zlib-dynamic' is to include zlib dynamically.
'zlib' is to include zlib statically.
But as shown above, 'zlib' is not doing that.
So I think this is a bug, is that correct?
If it is my configuration usage, how do I make zlib static?
1. Make sure there is a libz.a in /lib or /usr/lib, otherwise you have
no static
zlib to link in.
2. Temporarily remove or rename the symlink named exactly "libz.so" in
/lib, /usr/lib, /usr/local/lib and /zlib125/lib (This ensures it
cannot link to
the dynamic zlib).
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org