diff options
| author | Andrew Trick <atrick@apple.com> | 2011-06-03 02:20:48 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2011-06-03 02:20:48 +0000 |
| commit | c71224e29ffeb51424b132c43111be87ccb51154 (patch) | |
| tree | bcda011d94110f1573705f9df6c9e56f435c615c /llvm | |
| parent | 621129f07a88426fef4b5a14dd3a7cd6a5b2f1e7 (diff) | |
| download | bcm5719-llvm-c71224e29ffeb51424b132c43111be87ccb51154.tar.gz bcm5719-llvm-c71224e29ffeb51424b132c43111be87ccb51154.zip | |
Corrections and additional information for "Creating and LLVM Project"
documentation. This should now reflect the current state of LLVM Makefiles.
llvm-svn: 132527
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/docs/Projects.html | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/llvm/docs/Projects.html b/llvm/docs/Projects.html index 049d199d7eb..910ebdb426d 100644 --- a/llvm/docs/Projects.html +++ b/llvm/docs/Projects.html @@ -339,16 +339,41 @@ do:</p> <dt>USEDLIBS <dd> - This variable holds a space separated list of libraries that - should be linked into the program. These libraries must either - be LLVM libraries or libraries that come from your <b>lib</b> - directory. The libraries must be specified by their base name. - For example, to link libsample.a, you would set USEDLIBS to - <tt>sample</tt>. + This variable holds a space separated list of libraries that should + be linked into the program. These libraries must be libraries that + come from your <b>lib</b> directory. The libraries must be + specified without their "lib" prefix. For example, to link + libsample.a, you would set USEDLIBS to + <tt>sample.a</tt>. <p> Note that this works only for statically linked libraries. <p> + <dt>LLVMLIBS + <dd> + This variable holds a space separated list of libraries that should + be linked into the program. These libraries must be LLVM libraries. + The libraries must be specified without their "lib" prefix. For + example, to link with a driver that performs an IR transformation + you might set LLVMLIBS to this minimal set of libraries + <tt>LLVMSupport.a LLVMCore.a LLVMBitReader.a LLVMAsmParser.a LLVMAnalysis.a LLVMTransformUtils.a LLVMScalarOpts.a LLVMTarget.a</tt>. + <p> + Note that this works only for statically linked libraries. LLVM is + split into a large number of static libraries, and the list of libraries you + require may be much longer than the list above. To see a full list + of libraries use: + <tt>llvm-config --libs all</tt>. + Using LINK_COMPONENTS as described below, obviates the need to set LLVMLIBS. + <p> + + <dt>LINK_COMPONENTS + <dd>This variable holds a space separated list of components that + the LLVM Makefiles pass to the <tt>llvm-config</tt> tool to generate + a link line for the program. For example, to link with all LLVM + libraries use + <tt>LINK_COMPONENTS = all</tt>. + <p> + <dt>LIBS <dd> To link dynamic libraries, add <tt>-l<library base name></tt> to @@ -361,6 +386,9 @@ do:</p> <tt> LIBS += -lsample </tt> + <p> + Note that LIBS must occur in the Makefile after the inclusion of Makefile.common. + <p> </dl> </div> |

