This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] Make LIB_PATH configurable
On Thu, Apr 26, 2001 at 11:49:41PM -0400, Daniel Jacobowitz wrote:
>On Wed, Apr 25, 2001 at 10:32:36PM -0400, Christopher Faylor wrote:
>> On Wed, Apr 25, 2001 at 04:58:01PM -0400, Daniel Jacobowitz wrote:
>> >
>> >What I've been doing is just this:
>> >
>> >../configure --args
>> >make MAKE="make LIB_PATH=/lib/dir/1:/lib/dir/2"
>>
>> Um, yeah, I could do that. Or something like that. It would have to be
>> something like:
>>
>> LIB_PATH=/lib/dir/1:/lib/dir2 make
>>
>> though. This is what the README sort of suggests but it is certainly
>> not in the spirit of GNU configury. I don't want to have to tell
>> anyone who configures a cross compiler for cygwin to do this. That
>> is what configure is for.
>
>LIB_PATH=foo make will not work. LIB_PATH gets overridden in the
>recursive make call if you do it that way. That's why I had to set
>$(MAKE) instead. This was just to avoid slapping Yet Another local
>patch on binutils...
AFAIK, you can't rely on the fact that a LIB_PATH on the command line
will be propagated into the environment. GNU make has an .EXPORT_ALL_VARIABLES
option to do this but it doesn't seem to be the default.
cgf