Allow CROSS to be set in environment in test subdirs, too.
Jim Blandy
jimb at codesourcery.com
Mon Jul 31 19:54:57 UTC 2006
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
CC = $(CROSS)gcc
RM = rm -f
More information about the uClibc
mailing list