title: How to link a library with clang and llvm-link
body: <p>I am compiling my program like this,</p>
  
  <pre><code>clang++ -O4 -emit-llvm file1.cpp -c -o file1.bc -pthread 
  clang++ -O4 -emit-llvm file2.cpp -c -o file2.bc -pthread
  
  llvm-link file1.bc file2.bc -o main.ll -S 
  </code></pre>
  
  <p>How do I specify linking with <strong>-ldl</strong> </p>