Seems option --disable-dynamic-ssl-lib has no effect for crypto application in OTP. Bug?<br><br><div class="gmail_quote">On 22 April 2011 14:45, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com">max.lapshin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I've downloaded debian source package and decided to rebuild it with<br>
--disable-dynamic-ssl-lib<br>
<br>
As a result, I've finished with:<br>
<br>
x86_64-linux-gnu-gcc -c -o ../priv/obj/x86_64-pc-linux-gnu/crypto.o<br>
-Wall -Wstrict-prototypes -Wmissing-prototypes<br>
-Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE<br>
-D_REENTRANT -DPOSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -g -O2<br>
-fno-strict-aliasing<br>
-I/var/tmp/erlang/erlang-14.b.2-dfsg/erts/x86_64-pc-linux-gnu<br>
-fno-tree-copyrename -D_GNU_SOURCE -fPIC -I/usr/include<br>
-I/var/tmp/erlang/erlang-14.b.2-dfsg/erts/emulator/beam<br>
-I/var/tmp/erlang/erlang-14.b.2-dfsg/erts/include<br>
-I/var/tmp/erlang/erlang-14.b.2-dfsg/erts/include/x86_64-pc-linux-gnu<br>
-I/var/tmp/erlang/erlang-14.b.2-dfsg/erts/include/internal<br>
-I/var/tmp/erlang/erlang-14.b.2-dfsg/erts/include/internal/x86_64-pc-linux-gnu<br>
-I/var/tmp/erlang/erlang-14.b.2-dfsg/erts/emulator/sys/unix crypto.c<br>
/usr/bin/install -c -d ../priv/lib/x86_64-pc-linux-gnu<br>
x86_64-linux-gnu-gcc -shared -Wl,-Bsymbolic -o<br>
../priv/lib/x86_64-pc-linux-gnu/crypto.so<br>
../priv/obj/x86_64-pc-linux-gnu/crypto.o /usr/lib64/libcrypto.a<br>
/usr/bin/ld: /usr/lib64/libcrypto.a(cryptlib.o): relocation<br>
R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a<br>
shared object; recompile with -fPIC<br>
/usr/lib64/libcrypto.a: could not read symbols: Bad value<br>
<br>
<br>
<br>
I want to do it because I want to make release that has no<br>
dependencies on system packages and libcrypto seems to be the only<br>
one.<br>
Or it would be better to copy libcrypto.so to release folder?<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Maxim Treskin<br>