changeset 1443:923dbb2a8f19

Build the cross compiler's ldd/ldconfig for the correct architecture. (Sigh.)
author Rob Landley <rob@landley.net>
date Tue, 13 Sep 2011 16:09:37 -0500
parents 1039cd16dc92
children f8c41d637b7b
files sources/sections/uClibc.build
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/sources/sections/uClibc.build	Mon Sep 12 10:54:25 2011 -0500
+++ b/sources/sections/uClibc.build	Tue Sep 13 16:09:37 2011 -0500
@@ -38,9 +38,9 @@
   # The uClibc utils/Makefile.in is crazy.  There's no way to specify a prefix,
   # or to pass in --static via CFLAGS.  Just build 'em by hand.
 
-  "$ARCH-cc" utils/ldd.c -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}ldd" --static \
-    -I ldso/include -DBUILDING_LINKAGE &&
-  "$ARCH-cc" utils/ldconfig.c utils/chroot_realpath.c \
+  "$HOST_ARCH-cc" utils/ldd.c -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}ldd" \
+    --static -I ldso/include -DBUILDING_LINKAGE &&
+  "$HOST_ARCH-cc" utils/ldconfig.c utils/chroot_realpath.c \
     -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}ldconfig" --static -I ldso/include \
     -DUCLIBC_RUNTIME_PREFIX='"/"' -DBUILDING_LINKAGE || dienow
 fi