[erlang-questions] R16 + Centos + Crypto + ESL Package

Данила Федящин danilagamma@REDACTED
Wed Jul 30 18:49:14 CEST 2014


Hello,

During our work on migration from R14B04 to R16B03-1 we hit the problem
with `crypto` on `CentOS (details here:
https://groups.google.com/forum/#!topic/erlang-programming/wW6Uuz4VO2w),
We decided to create our own build, where configure line in spec file would
look like: './configure ... CFLAGS="-DOPENSSL_NO_EC=1"'

That made `crypto` work, but tests showed significant slowdown for
_everything_ in VM (every operation became ~2x slower in comparison with
R14).
We tried ErlangSolutions R16B03-1 CentOS package (was found here:
http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_16.b.3-1~centos~6_amd64.rpm)
which was also slow as ours.
After some digging we found that `CFLAGS="-DOPENSSL_NO_EC=1"` rewrites
`CFLAGS="-g -O2"`, which was the culprit of slowdown.
So, we are assuming that Erlang Solutions package was compiled in same way
we compiled ours.

So the question is: what is the best way to 'append' CFLAGS option, rather
then providing '-DOPENSSL_NO_EC=1 -g -O2' assuming that we've appended
correct default options?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140730/9afe61cc/attachment.htm>


More information about the erlang-questions mailing list