From 37c154a1b2638ae10dc8ad4776b828d1383f1db1 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Fri, 17 Oct 2003 21:50:38 +0000 Subject: [PATCH] Added additional information about linking dynamic libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9211 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/Projects.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/Projects.html b/docs/Projects.html index f8aaad812e8..8652f374e7a 100644 --- a/docs/Projects.html +++ b/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

-- 2.34.1