From 91dbd8fd828baa47ab58435408a036eaa15b8240 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Fri, 17 Oct 2003 21:50:38 +0000 Subject: Added additional information about linking dynamic libraries. llvm-svn: 9211 --- llvm/docs/Projects.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'llvm/docs/Projects.html') diff --git a/llvm/docs/Projects.html b/llvm/docs/Projects.html index f8aaad812e8..8652f374e7a 100644 --- a/llvm/docs/Projects.html +++ b/llvm/docs/Projects.html @@ -275,6 +275,21 @@ For example, to link libsample.a, you would set USEDLIBS to sample.

+ Note that this works only for statically linked libraries. +

+ +

LIBS +
+ To link dynamic libraries, add -l<library base name> to + the LIBS variable. The LLVM build system will look in the same places + for dynamic libraries as it does for static libraries. +

+ For example, to link libsample.so, you would have the + following line in your Makefile: +

+ + LIBS+=-lsample +

Miscellaneous Variables

-- cgit v1.2.3