title: Is there any way to building static Qt with static OpenSSL?
body: <p>Original question was slightly different but part of a more major question.</p>
  
  <p>I am trying to build Qt 5.2 as static with static OpenSSL on Windows. </p>
  
  <p>My final goal is to <strong>ship a single binary</strong> without the need to provide libeay32.dll and ssleay32.dll with it. However, it seems to me that this is impossible. I built static Qt with static openssl libs but it seems like Qt is outright ignoring the libs provided and always searches for DLLs.</p>
  
  <p><a href="https://stackoverflow.com/questions/14566212/about-compiling-openssl-inside-qt-application">This</a> answer also suggests that QtNetwork always searches for DLLs and ignores everything else but it also states that "two options are to <em>compile OpenSSL into Qt</em>..." but this does not seem to be the case.</p>
  
  <p>Can someone provide a definitive answer?</p>
  
  <p>This is my Qt configure (line breaks added for readability):</p>
  
  <pre><code>configure -static -qmake -opensource -nomake examples -opengl desktop
  -platform win32-msvc2010 -openssl -I C:\git\openssl\build\include
  -L C:\git\openssl\build\lib OPENSSL_LIBS="-llibeay32 -lssleay32 -lgdi32"
  </code></pre>