title: Use self-compiled OpenSSL to compile bitcoin on fedora 21
body: <p>Right now I can build the <code>bitcoin-qt</code> and execute it but it immediately exits with this Error:</p>
  
  <blockquote>
    <p>OpenSSL appears to lack support for elliptic curve cryptography. For
    more information, visit
    <a href="https://en.bitcoin.it/wiki/OpenSSL_and_EC_Libraries" rel="nofollow">https://en.bitcoin.it/wiki/OpenSSL_and_EC_Libraries</a></p>
  </blockquote>
  
  <p>The website only links to some outdated rpms for fedora 19 but it is also mentioned one could "compile [their] own OpenSSL and use this".</p>
  
  <p>I can download and compile OpenSSL but I never managed to <strong>tell bitcoin where OpenSSL is located.</strong></p>
  
  <p>What I tried yesterday: (instructions from <a href="https://opennet.hackpad.com/ep/pad/static/HqezreF8xmh" rel="nofollow">https://opennet.hackpad.com/ep/pad/static/HqezreF8xmh</a> )</p>
  
  <ul>
  <li><p>install dependecies</p></li>
  <li><p>export OPENSSL_PREFIX=/tmp/folder1</p></li>
  <li><p>Download and unzip openssl-1.0.2a source code</p></li>
  <li><p>CC='cc -fPIC' ./config --prefix=$OPENSSL_PREFIX</p></li>
  <li><p>make all install_sw</p></li>
  <li><p>Download and unzip bitcoin source code</p></li>
  <li><p>./autogen.sh</p></li>
  <li><p>./configure SSL_CFLAGS=' ' SSL_LIBS="$OPENSSL_PREFIX/lib/libssl.a $OPENSSL_PREFIX/lib/libcrypto.a -ldl" CRYPTO_CFLAGS=' ' CRYPTO_LIBS=' '</p></li>
  <li><p>make</p></li>
  </ul>
  
  <p>But this failed with</p>
  
  <pre><code>libbitcoin_util.a(libbitcoin_util_a-random.o): In function `RandAddSeed()':
  /tmp/test2/bitcoin/src/random.cpp:42: undefined reference to `RAND_add'
  </code></pre>