[racket] Cross compile to PowerPC
At Thu, 18 Apr 2013 14:51:55 +0100, Tim Brown wrote:
> The script (as it is) has STRIP_DEBUG="${CROSS_COMPILE}strip -S" on the
> "make install" command line. I also run configure with:
>
> ./configure --disable-docs --host=$HOST \
> STRIP_DEBUG="${CROSS_COMPILE}strip -S"
>
> But that ${CROSS_COMPILE} bit doesn't get propagated. Is `strip`
> architecture independent i.e. is it an ELF tool, and can I just
> use the x86 one on my build machine?
The `strip' tool is normally architecture-specific.
> Otherwise, there seems to be half-baked support for it in configure and
> src/racket/Makefile -- could it be fully baked?
I'm not sure that stripping is always the right thing --- the
information may be needed for stack traces in JIT mode on some
platforms --- but I'll investigate more.
> At the moment, I can develop scripts/programs on NFS using a racket
> installation there (even a full one, at that). As an embedded device,
> the target won't have access to this facility. So, f I package something up
> with "raco make", do I need the collects (or anything other than racket
> and the shared libraries). i.e. will it make a program/module that
> contains only the necessary and sufficient?
Use `raco exe' and `raco dist' to get a directory that contains just
what your program needs to run.