From fe43fa9de38d9e1f18bdc1924a2cee72f244bdd5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Nov 2009 16:42:36 +0000 Subject: Implement linker-compatible library search. --- doc/make.texi | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'doc') 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. -- cgit v1.2.3