<div dir="ltr">Hello,<div><br></div><div>During our work on migration from R14B04 to R16B03-1 we hit the problem with `crypto` on `CentOS (details here: <a href="https://groups.google.com/forum/#!topic/erlang-programming/wW6Uuz4VO2w" target="_blank">https://groups.google.com/forum/#!topic/erlang-programming/wW6Uuz4VO2w</a>), </div>
<div>We decided to create our own build, where configure line in spec file would look like: '<span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px">./configure ... CFLAGS="-DOPENSSL_NO_EC=1"'</span></div>
<div><br></div><div>That made `crypto` work, but tests showed significant slowdown for _everything_ in VM (every operation became ~2x slower in comparison with R14). </div><div>We tried ErlangSolutions R16B03-1 CentOS package (was found here: <a href="http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_16.b.3-1~centos~6_amd64.rpm" target="_blank">http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_16.b.3-1~centos~6_amd64.rpm</a>) which was also slow as ours. </div>
<div>After some digging we found that `CFLAGS="-DOPENSSL_NO_EC=1"` rewrites `CFLAGS="-g -O2"`, which was the culprit of slowdown.</div><div>So, we are assuming that Erlang Solutions package was compiled in same way we compiled ours.</div>
<div><br></div><div>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?</div></div>