History

document $CPATH, $C_INCLUDE_PATH, $LIBRARY_PATH

Urs Janssen committed 13 years ago

Commit 243c6991 parent 183b2ab1 file · +22 −3Browse files

Unified · Split

tcc-doc.texi+22−3
@@ -276,7 +276,7 @@ default library paths are @file{/usr/local/lib}, @file{/usr/lib} and @file{/lib} · 275 unmodified lines
276276 @item -lxxx
277277 Link your program with dynamic library libxxx.so or static library
278278 libxxx.a. The library is searched in the paths specified by the
279−@option{-L} option.
279+@option{-L} option and @env{LIBRARY_PATH} variable.
280280
281281 @item -Bdir
282282 Set the path where the tcc internal libraries (and include files) can be
@@ -361,12 +361,31 @@ Note: GCC options @option{-Ox}, @option{-fx} and @option{-mx} are · 78 unmodified lines
361361 ignored.
362362 @c man end
363363
364+@c man begin ENVIRONMENT
365+Environment variables that affect how tcc operates.
366+
367+@table @option
368+
369+@item CPATH
370+@item C_INCLUDE_PATH
371+A colon-separated list of directories searched for include files,
372+directories given with @option{-I} are searched first.
373+
374+@item LIBRARY_PATH
375+A colon-separated list of directories searched for libraries for the
376+@option{-l} option, directories given with @option{-L} are searched first.
377+
378+@end table
379+
380+@c man end
381+
364382 @ignore
365383
366384 @setfilename tcc
367385 @settitle Tiny C Compiler
368386
369387 @c man begin SEEALSO
388+cpp(1),
370389 gcc(1)
371390 @c man end
372391
@@ -702,7 +721,7 @@ They can be defined several times in the same source. Use 'b' · 329 unmodified lines
702721 @cindex asciz directive
703722 @cindex ascii directive
704723
705−All directives are preceeded by a '.'. The following directives are
724+All directives are preceded by a '.'. The following directives are
706725 supported:
707726
708727 @itemize
@@ -921,7 +940,7 @@ reverse order, a first pass is done to reverse the argument order. · 212 unmodified lines
921940
922941 @section Types
923942
924−The types are stored in a single 'int' variable. It was choosen in the
943+The types are stored in a single 'int' variable. It was chosen in the
925944 first stages of development when tcc was much simpler. Now, it may not
926945 be the best solution.
927946

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t