summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2009-11-12 16:42:36 +0000
committerBoris Kolpackov <boris@kolpackov.net>2009-11-12 16:42:36 +0000
commitfe43fa9de38d9e1f18bdc1924a2cee72f244bdd5 (patch)
tree7d0ef232e5e4c9b694784fe3b76f5006ced0e5e7 /doc
parent5f188b39a49a7eb0d06979b451863dd7ff26a074 (diff)
downloadgunmake-fe43fa9de38d9e1f18bdc1924a2cee72f244bdd5.tar.gz
Implement linker-compatible library search.
Diffstat (limited to 'doc')
-rw-r--r--doc/make.texi11
1 files changed, 4 insertions, 7 deletions
diff --git a/doc/make.texi b/doc/make.texi
index 7a3be3b..7187e19 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.