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 11:31:42PM -0700, Ian Lance Taylor wrote:
>Christopher Faylor <cgf@redhat.com> writes:
>
>> 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.
>
>Well, that's true. NATIVE_LIB_DIRS only works for a native
>configuration.
>
>I don't understand why you need to do this in a cross-configuration.
>In a cross-configuration you're in complete control of where the
>libraries are installed. Why not install all the libraries in the lib
>directory?
Because the makefile which installs the .a files puts them in a
subdirectory. I could, of course, attempt to detect when this is happening
in a cross-build environment but that seems sort of pointless. Why
not have the cross build mimic the native directory structure if
possible?
>It seems a bit odd to do this through a configuration option. Where
>are you going to set that option? (Maybe that was in your original
>patch, which I didn't examine).
It's not an option. It is just a setting of LIB_PATH in configure.tgt.
Someone else asked for an option but I indicated that this was not
within the scope of what I was trying to accomplish.
>But I don't object to your patch.
cgf