mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 23:55:03 +00:00
Added additional information about linking dynamic libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5f6859911
commit
37c154a1b2
@ -275,6 +275,21 @@
|
|||||||
For example, to link libsample.a, you would set USEDLIBS to
|
For example, to link libsample.a, you would set USEDLIBS to
|
||||||
<tt>sample</tt>.
|
<tt>sample</tt>.
|
||||||
<p>
|
<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>
|
</dl>
|
||||||
|
|
||||||
<h3> Miscellaneous Variables</h3>
|
<h3> Miscellaneous Variables</h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user