changeset 147:711eb6884b54

uClibc uses CROSS for different things than we do, so blank it when not explicitly setting it.
author Rob Landley <rob@landley.net>
date Sat, 07 Apr 2007 20:34:08 -0400
parents 14cb90f7fc07
children 4d6404801202
files cross-compiler.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cross-compiler.sh	Sat Apr 07 20:33:28 2007 -0400
+++ b/cross-compiler.sh	Sat Apr 07 20:34:08 2007 -0400
@@ -81,7 +81,7 @@
 # Build and install uClibc
 
 setupfor uClibc
-make allnoconfig KCONFIG_ALLCONFIG="${WORK}"/miniconfig-uClibc &&
+make CROSS= allnoconfig KCONFIG_ALLCONFIG="${WORK}"/miniconfig-uClibc &&
 make CROSS="${ARCH}-" KERNEL_HEADERS="${CROSS}/include" PREFIX="${CROSS}/" \
 	RUNTIME_PREFIX=/ DEVEL_PREFIX=/ all install_runtime install_dev &&
 # "make utils" in uClibc is broken for cross compiling.  Either it creates a
@@ -89,8 +89,8 @@
 # host binary against the target library, and use the target compiler flags
 # (neither of which is going to produce a working host binary).  The solution
 # is to bypass the broken build entirely, and do it by hand.
-make distclean &&
-make allnoconfig &&
+make CROSS= distclean &&
+make CROSS= allnoconfig &&
 make CROSS= headers KERNEL_HEADERS=/usr/include &&
 $CC -Os -s -I include utils/readelf.c -o readelf &&
 $CC -Os -s -I ldso/include utils/ldd.c -o ldd &&