Allow CROSS to be set in environment in test subdirs, too.
Rich Felker
dalias at aerifal.cx
Mon Jul 31 20:35:30 PDT 2006
On Mon, Jul 31, 2006 at 12:54:57PM -0700, Jim Blandy wrote:
>
> This patch would make things in the test directory behave more like
> the top-level Makefile.
>
> === test/Rules.mak
> ==================================================================
> --- test/Rules.mak (revision 146037)
> +++ test/Rules.mak (local)
> @@ -49,8 +49,12 @@
> # 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...
Rich
More information about the uClibc
mailing list