title: OSX: How to statically link a library and dynamically link the standard library?
body: <p>How do I specify to clang to statically link a certain library (in my case SDL2) and dynamically link the standard library?</p>
  
  <p>Using <code>-static</code> is not good, since the linker tries to statically link the standard library as well, which is prohibited in OSX. On the other hand, clang doesn't know <code>-Wl,-Bstatic</code>.</p>