[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to set up the vpath/VPATH entries for link lib search
From: |
Robert P. J. Day |
Subject: |
Re: how to set up the vpath/VPATH entries for link lib search |
Date: |
Wed, 2 Mar 2005 06:31:54 -0500 (EST) |
On Tue, 1 Mar 2005, Paul D. Smith wrote:
> %% "Robert P. J. Day" <address@hidden> writes:
>
> rpjd> "When a prerequisite's name has the form `-lname', make handles it
> rpjd> specially by searching for the file `libname.so' in the current
> rpjd> directory, in directories specified by matching vpath search paths and
> rpjd> the VPATH search path, and then in the directories `/lib', `/usr/lib',
> rpjd> and `prefix/lib' (normally `/usr/local/lib', but MS-DOS/MS-Windows
> rpjd> versions of make behave as if prefix is defined to be the root of the
> rpjd> DJGPP installation tree).
>
> rpjd> If that file is not found, then the file `libname.a' is searched for,
> rpjd> in the same directories as above."
>
> rpjd> ok, so what's the standard way you would set vpath?
>
> rpjd> vpath %.so dir1:dir2:dir3 ??
> rpjd> vpath lib.%so dir1:dir2:dir3 ??
>
> Well, if you really meant "lib%.so" in the second case,
um ... yeah. oops.
> then either one. That's assuming that you actually have shared
> libraries: obviously this won't find any static libraries.
i would have *guessed* that that's the way "vpath" worked with
libraries, but i was just being careful as section 4.5.6 of the online
make manual doesn't actually come right out and *say* it. it kind of
leaves you to guess what the right pattern is, and having a real
example there probably wouldn't hurt.
rday