Allow CROSS to be set in environment in test subdirs, too.
Jim Blandy
jimb at codesourcery.com
Wed Aug 2 17:53:45 UTC 2006
Rich Felker <dalias at aerifal.cx> writes:
> On Tue, Aug 01, 2006 at 11:17:03AM +0000, Paul Brook wrote:
>> > > # Most people will set this stuff on the command line, i.e.
>> > > # make CROSS=mipsel-linux-
>> > > # will build uClibc for 'mipsel'.
>> > > +#
>> > > +# You can set CROSS in the environment, too.
>> > >
>> > > +ifndef CROSS
>> > > CROSS = $(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
>> > > +endif
>> >
>> > Command line variables already override ones in the makefile...
>>
>> Yes, but *environment* variables do not.
>
> make -e
It seems to me the test makefile should behave the same way as the
top-level makefile; that was the original motivation for the patch.
More information about the uClibc
mailing list