On Sunday 11 January 2009 16:09:52 Denys Vlasenko wrote:
> I am not expert, so take my opinion with a grain of salt.
>
> On Tuesday 09 December 2008 02:54, Rob Landley wrote:
> > So once again I'm trying to add readelf and ldd to my cross compiler
> > toolchain, to run on the host but examine target binaries, and I'm having
> > problems.
>
> You need "make hostutils". I think you discovered this already.

Yup, I'm currently doing:

# Build and install uClibc

setupfor uClibc
make CROSS= KCONFIG_ALLCONFIG="$(getconfig uClibc)" allnoconfig &&
make CROSS="${ARCH}-" KERNEL_HEADERS="${CROSS}/include" PREFIX="${CROSS}/" \
     RUNTIME_PREFIX=/ DEVEL_PREFIX=/ -j $CPUS install hostutils || dienow
for i in $(cd utils; ls *.host | sed 's/\.host//')
do
  cp utils/"$i".host "$CROSS/bin/$ARCH-$i" || dienow
done
cd ..

cleanup uClibc

I.E. the "make install" for hostutils was worthless (I forget why), but that's 
easy enough to work around.

I'm all for cleaning up the makefiles to be less tangled, I'm just not 
personally very good with makefiles and tend to avoid them where possible.  
(Every time I try, I wind up screaming at the make designers "imperative or 
declarative: pick one!")

Rob
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to