On Nov 28, 2007 11:59 AM, Ranjeet Kumar <[EMAIL PROTECTED]> wrote: > > > Hi Marek, > > You understood me correctly. But basically I want binary should be very > less in size. Earlier openssl binary was 1.7MB, after your step passwd > binary is 1.1MB. It cannot be accepted. I think right now libssl3.so is > linked statically. If we link dynamically then size can be reduce > because libssl3.so is already available on the box. > > Please help me in doing so. > > Thanks, > Ranjeet >
>From Marek's steps it doesn't seem that libssl is being used, he's using libcrypto.a > $ make passwd.o > $ cc -o passwd passwd.o apps.o ../libcrypto.a -ldl > $ ldd passwd > linux-gate.so.1 => (0x00c5a000) > libdl.so.2 => /lib/libdl.so.2 (0x4b03a000) > libc.so.6 => /lib/libc.so.6 (0x4aede000) > /lib/ld-linux.so.2 (0x4aec1000) If you want to dynamic link, you can change the "libcrypto.a" above to "libcrypto.so" or -lcrypto if it's available in your system's library path. -jb ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]