diff options
author | Boris Kolpackov <boris@kolpackov.net> | 2009-11-12 16:42:36 +0000 |
---|---|---|
committer | Boris Kolpackov <boris@kolpackov.net> | 2009-11-12 16:42:36 +0000 |
commit | 49d5a0a5b654fee2eed672312c2c81b231062fab (patch) | |
tree | 7d0ef232e5e4c9b694784fe3b76f5006ced0e5e7 /doc | |
parent | d5b643c0ab4a81bf8fb3b8e4088a81ffd0235a7a (diff) | |
download | make-49d5a0a5b654fee2eed672312c2c81b231062fab.tar.gz |
Implement linker-compatible library search.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/make.texi | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/doc/make.texi b/doc/make.texi index 7a3be3b0..7187e195 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -2425,17 +2425,15 @@ file, and the @emph{file name} of a library generally looks like @file{lib@var{name}.a}, not like @samp{-l@var{name}}.)@refill When a prerequisite's name has the form @samp{-l@var{name}}, @code{make} -handles it specially by searching for the file @file{lib@var{name}.so} in -the current directory, in directories specified by matching @code{vpath} +handles it specially by searching for the file @file{lib@var{name}.so}, +and, if it is not found, for the file @file{lib@var{name}.a} in the current +directory, in directories specified by matching @code{vpath} search paths and the @code{VPATH} search path, and then in the directories @file{/lib}, @file{/usr/lib}, and @file{@var{prefix}/lib} (normally @file{/usr/local/lib}, but MS-DOS/MS-Windows versions of @code{make} behave as if @var{prefix} is defined to be the root of the DJGPP installation tree). -If that file is not found, then the file @file{lib@var{name}.a} is -searched for, in the same directories as above. - For example, if there is a @file{/usr/lib/libcurses.a} library on your system (and no @file{/usr/lib/libcurses.so} file), then @@ -2457,8 +2455,7 @@ via the @code{.LIBPATTERNS} variable. Each word in the value of this variable is a pattern string. When a prerequisite like @samp{-l@var{name}} is seen, @code{make} will replace the percent in each pattern in the list with @var{name} and perform the above directory -searches using that library filename. If no library is found, the next -word in the list will be used. +searches using each library filename. The default value for @code{.LIBPATTERNS} is @samp{lib%.so lib%.a}, which provides the default behavior described above. |