Added additional information about linking dynamic libraries.
authorJohn Criswell <criswell@uiuc.edu>
Fri, 17 Oct 2003 21:50:38 +0000 (21:50 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Fri, 17 Oct 2003 21:50:38 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9211 91177308-0d34-0410-b5e6-96231b3b80d8

docs/Projects.html

index f8aaad8..8652f37 100644 (file)
                For example, to link libsample.a, you would set USEDLIBS to
                <tt>sample</tt>.
                <p>
+               Note that this works only for statically linked libraries.
+               <p>
+
+               <dt>LIBS
+               <dd>
+               To link dynamic libraries, add <tt>-l&lt;library base name&gt;</tt> to
+               the LIBS variable.  The LLVM build system will look in the same places
+               for dynamic libraries as it does for static libraries.
+               <p>
+               For example, to link <tt>libsample.so</tt>, you would have the
+               following line in your <tt>Makefile</tt>:
+               <p>
+               <tt>
+               LIBS+=-lsample
+               </tt>
        </dl>
 
        <h3> Miscellaneous Variables</h3>