title: msys2 (msys64) cannot find -lcrypt
body: <p>I have msys2 (msys64) <a href="https://www.msys2.org/" rel="nofollow noreferrer">https://www.msys2.org/</a> and am compiling some older code in gcc, but get "cannot find -lcrypt", -lcrypt is declared in the makefile, as crypt is cited in the code.</p>
  
  <p>The only version of crypt library I can get to get to run is -lcrypt32 which is a library in msys2, but this doesn't seem to offer the support for crypt so I then get crypt errors. Does anyone know how to get the normal crypt recognized in msys2? I assume it's relying on mingw, I also recall from a long while back that mingw doesn't support lcrypt, but I could be wrong.</p>
  
  <blockquote>
    <p>/usr/lib/gcc/x86_64-pc-msys/6.4.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lcrypt<br>
    collect2: error: ld returned 1 exit status<br>
    make: *** [Makefile:260: arch] Error 1</p>
  </blockquote>