On Mon, Nov 2, 2009 at 21:37, john blair wrote:
> I have built openssl-0.9.8k and am trying to link libcrypto.a statically with
> my project. I think libcrypto.a contains contains non-relocatable functions
> For example, consider the following:
> #include <openssl/des.h>
> void foo(void) {
> DES_encrypt3(NULL, NULL, NULL, NULL);
> AES_encrypt(NULL, NULL);
> }
>
> $ gcc -fPIC -o libfoo.so -shared foo.c /usr/lib/libcrypto.a
dont link static libraries into shared libraries and it isnt a problem
> Can someone point me to why building static libs on 32 bit system with fPIC
> is a bad idea?
pic adds a lot of overhead with x86 due to register pressure
-mike
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]