[llvm-commits] CVS: llvm/docs/Projects.html

John Criswell criswell at cs.uiuc.edu
Fri Oct 17 16:51:01 PDT 2003


Changes in directory llvm/docs:

Projects.html updated: 1.5 -> 1.6

---
Log message:

Added additional information about linking dynamic libraries.



---
Diffs of the changes:  (+15 -0)

Index: llvm/docs/Projects.html
diff -u llvm/docs/Projects.html:1.5 llvm/docs/Projects.html:1.6
--- llvm/docs/Projects.html:1.5	Thu Oct 16 15:01:04 2003
+++ llvm/docs/Projects.html	Fri Oct 17 16:50:38 2003
@@ -275,6 +275,21 @@
 		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<library base name></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>





More information about the llvm-commits mailing list