This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] Make LIB_PATH configurable
On Wed, Apr 25, 2001 at 05:46:56PM -0700, Ian Lance Taylor wrote:
>Christopher Faylor <cgf@redhat.com> writes:
>
>> 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.
>
>Normally you set NATIVE_LIB_DIRS in ld/configure.host.
>
>I don't think your patch is necessary.
I did set NATIVE_LIB_DIRS in ld/configure.host:
* configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
It doesn't seem to affect a cross-built ld. I just tried this again to
make sure. Just setting NATIVE_LIB_DIRS only seems to affect the
behavior when creating an ld where host == target.
It seems that you need to set LIB_PATH where host != target and you
need to search something besides /usr/lib/i686-pc-cygwin/lib (for
example).
>From the README:
If you want to make a cross-linker, you may want to specify
a different search path of -lfoo libraries than the default.
You can do this by setting the LIB_PATH variable in ./Makefile.
To build just the linker, make the target all-ld from the top level
directory (one directory above this one).
cgf