title: "undefined reference to strerror_r" with OpenSSL-1.1.0e and MinGW
body: <p>While building OpenSSL-1.1.0d I am getting below error.</p>
  
  <pre><code>./libcrypto.a(o_str.o):o_str.c:(.text+0x5cb): undefined reference to `strerror_r'
  collect2.exe: error: ld returned 1 exit status
  make[2]: *** [Makefile.shared:187: link_app.] Error 1
  make[2]: Leaving directory '/c/MinGW/openssl-1.1.0d'
  make[1]: *** [Makefile:5966: apps/openssl.exe] Error 2
  make[1]: Leaving directory '/c/MinGW/openssl-1.1.0d'
  make: *** [Makefile:128: all] Error 2
  </code></pre>
  
  <p>I followed the below steps to build it </p>
  
  <ol>
  <li><p><code>tar -xf vv.tar.gz</code></p></li>
  <li><p><code>perl Configure mingw no-shared</code></p></li>
  <li><p><code>make</code></p></li>
  </ol>
  
  <p>The instructions came from <a href="http://www.stringcat.com/company_blog/2015/12/07/compiling-openssl-on-windows-mingw32/" rel="nofollow noreferrer">Compiling OpenSSL on Windows (mingw32)</a>.</p>
  
  <p>Why is the link failing, and how do I fix it?</p>