title: How to enable address sanitizer for multiple C++ binaries
body: <p>I am working on a product that is composed of multiple C++ executables and libraries that have various dependencies on one another. I am building them all with GCC and <code>-fsanitize-address</code>. 
  From what I understand, if I want to use address sanitizer with a library I have to build it as a shared object (which is the default option for GCC). Because of this, I thought the best option would be to build address sanitizer statically with <code>-static-libasan</code> for the executables and build it dinamically for the libraries. However, when I do that I get a link error when building one of the C++ executables:</p>
  
  <pre><code>==10823==Your application is linked against incompatible ASan runtimes
  </code></pre>
  
  <p>This makes me think that static and dynamic version of address sanitizer cannot be mixed with GCC, am I right? I was not able to find any information about this on the sanitizers GitHub page.</p>