<p>Fixes linkage for Ubuntu Wily (15.10).<br>
The issue manifests itself as "undefined symbol: SHA1" error at module loading.</p>

<p>In Ubuntu 14 LTS (Trusty), <code>pkg-config --libs libssl</code> returns <code>-lssl -lcrypto</code>, but in Ubuntu 15.10 (Wily) it returns only <code>-lssl</code>. In the end, websocket.so gets SHA1 symbol (and some more) unresolved.</p>

<p>For unclear reason, this change is not needed for tls.so - it gets linked to libcrypto automatically, despite it is linked only with <code>-lssl</code> flag. Maybe it is something symbol-specific, or something I am completely unaware of.</p>

<p>SSL_BUILDER stuff in Makefile seems to become even more mostruous with the proposed change. Keep in mind that there is ~5 more modules with identical construction in their Makefiles. Rejection of this patch in favor of cleaner solution is appreciated.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/439'>https://github.com/kamailio/kamailio/pull/439</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>modules/websocket: ensure linkage to libcrypto</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/439/files#diff-0">modules/websocket/Makefile</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/439.patch'>https://github.com/kamailio/kamailio/pull/439.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/439.diff'>https://github.com/kamailio/kamailio/pull/439.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/439">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSoRDrHpy2sr8y5vOmml-v_tnnrKks5pPIAEgaJpZM4G0L-o.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/439"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>