[plt-scheme] cross-compilation porting question

From: Brian Zhou (b88zhou at gmail.com)
Date: Mon Apr 4 23:15:55 EDT 2005


I'm a scheme newbie. Since a linksys nslu2 (xscale CPU, see
http://nslu2-linux.org) is my only constant-on linux machine, I'm
trying to port mzscheme over by cross compilation. The porting went
pretty well and I actually get the mzscheme binary working. Those who
are interested can take a look at the work-in-progress

The problem is that collects contain some native extensions. On cross
build host, when I do the install step, I can use the host mzscheme to
generate all zo's fine, but it insisted on using the build machine's
gcc to build the target .so's - apparently that would fail. Is there a
way to

1. disable native .so extension?
2. or even better, have mzscheme use the target_cc for compiling
native extensions?

I know probably I can make native compilation working, but
cross-compilation is really preferred. Native compilation is so slow.

Thanks for any help,

-Brian Zhou

Posted on the users mailing list.