title: Cannot find -lubsan on using -fsanitize=undefined (mingw-w64)
body: <p>I'm using mingw-w64 (gcc 7.3.0) and when I compile any C++ program using the following command:</p>
  
  <pre><code>g++ file.cpp -fsanitize=undefined
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>...mingw32/bin/ld.exe: cannot find -lubsan</p>
  </blockquote>
  
  <p>I'm able to successfully compile and run my programs if I remove the <code>-fsanitize=undefined</code> flag, though. After some research I found out that this means the library ubsan (Undefined Behavior Sanitizer) is missing, but I couldn't find anything about the library. How do I fix this?</p>