This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] Make LIB_PATH configurable
- To: binutils at sources dot redhat dot com
- Subject: Re: [RFA] Make LIB_PATH configurable
- From: Daniel Jacobowitz <dmj+ at andrew dot cmu dot edu>
- Date: Wed, 25 Apr 2001 16:58:01 -0400
- References: <20010425153417.A6542@redhat.com>
On Wed, Apr 25, 2001 at 03:34:17PM -0400, Christopher Faylor wrote:
> Cygwin is evolving an odd directory layout for some of its libraries.
> Specifically, ld needs to search .../lib/w32api as well as .../lib .
>
> The only way I could find to accomodate this behavior was to use
> the LIB_PATH variable in the ld Makefile.
>
> I need to search /blah/i686-pc-cygwin/lib and /blah/i686-pc-cygwin/lib/w32api
> in a cross building environment and /usr/lib, /usr/lib/w32api in a native
> environment.
>
> I can get the /usr/lib, /usr/lib/w32api behavior by modifying configure.host.
> The cross-build environment is a little problematic, however.
>
> The ld README seems to indicate that LIB_PATH variable in Makefile.in is
> useful for doing what I need. The problem is that this was not a configurable
> setting. It was apparently intended to be hand edited by a user?
>
> The patch below makes this variable settable by configure. Currently, only
> cygwin uses it, so the net effect is still the same as previously.
>
> Does this change make any sense or am I overlooking some other mechanism
> for accomplishing what I want to do?
What I've been doing is just this:
../configure --args
make MAKE="make LIB_PATH=/lib/dir/1:/lib/dir/2"
And that seems to work, but is not elegant. While you're at it, could
you make this overrideable by a --with option? Please?
--
Daniel Jacobowitz Debian GNU/Linux Developer
Monta Vista Software Debian Security Team