Viitor_cc65/usr/share/doc/cc65/webdoc/ld65-3.html
kueller 223cc6685e Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cc65@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +00:00

87 lines
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20">
<TITLE>ld65 Users Guide: Search paths</TITLE>
<LINK HREF="ld65-4.html" REL=next>
<LINK HREF="ld65-2.html" REL=previous>
<LINK HREF="ld65.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="ld65-4.html">Next</A>
<A HREF="ld65-2.html">Previous</A>
<A HREF="ld65.html#toc3">Contents</A>
<HR>
<H2><A NAME="s3">3.</A> <A HREF="ld65.html#toc3">Search paths</A></H2>
<P>Starting with version 2.10 there are now several search paths for files needed
by the linker: One for libraries, one for object files and one for config
files.</P>
<H2><A NAME="ss3.1">3.1</A> <A HREF="ld65.html#toc3.1">Library search path</A>
</H2>
<P>The library search path contains in this order:</P>
<P>
<OL>
<LI>The current directory.</LI>
<LI>A compiled in library path which is often <CODE>/usr/lib/cc65/lib</CODE> on
Linux systems.</LI>
<LI>The value of the environment variable <CODE>LD65_LIB</CODE> if it is defined.</LI>
<LI>The value of the environment variable <CODE>CC65_LIB</CODE> if it is defined.
Please note that use of this environment variable is obsolete and may
get removed in future versions.</LI>
<LI>Any directory added with the <CODE>
<A HREF="ld65-2.html#option--lib-path">--lib-path</A></CODE> option on the command line.</LI>
</OL>
</P>
<H2><A NAME="ss3.2">3.2</A> <A HREF="ld65.html#toc3.2">Object file search path</A>
</H2>
<P>The object file search path contains in this order:</P>
<P>
<OL>
<LI>The current directory.</LI>
<LI>A compiled in directory which is often <CODE>/usr/lib/cc65/lib</CODE> on
Linux systems.</LI>
<LI>The value of the environment variable <CODE>LD65_OBJ</CODE> if it is defined.</LI>
<LI>The value of the environment variable <CODE>CC65_LIB</CODE> if it is defined.
Please note that use of this environment variable is obsolete and may
get removed in future versions.</LI>
<LI>Any directory added with the <CODE>
<A HREF="ld65-2.html#option--obj-path">--obj-path</A></CODE> option on the command line.</LI>
</OL>
</P>
<H2><A NAME="ss3.3">3.3</A> <A HREF="ld65.html#toc3.3">Config file search path</A>
</H2>
<P>The config file search path contains in this order:</P>
<P>
<OL>
<LI>The current directory.</LI>
<LI>A compiled in directory which is often <CODE>/usr/lib/cc65/lib</CODE> on
Linux systems.</LI>
<LI>The value of the environment variable <CODE>LD65_CFG</CODE> if it is defined.</LI>
<LI>Any directory added with the <CODE>
<A HREF="ld65-2.html#option--cfg-path">--cfg-path</A></CODE> option on the command line.</LI>
</OL>
</P>
<HR>
<A HREF="ld65-4.html">Next</A>
<A HREF="ld65-2.html">Previous</A>
<A HREF="ld65.html#toc3">Contents</A>
</BODY>
</HTML>